From a49446c6963cd3f7b65f2350e6c7585650eb83c4 Mon Sep 17 00:00:00 2001 From: Lainow Date: Fri, 18 Oct 2024 09:45:06 +0200 Subject: [PATCH] Add suggestion --- inc/container.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/container.class.php b/inc/container.class.php index 191843ee..01957572 100644 --- a/inc/container.class.php +++ b/inc/container.class.php @@ -1139,7 +1139,7 @@ public function getTabNameForItem(CommonGLPI $item, $withtemplate = 0) if (isset($itemtypes[$item->getType()])) { $tabs_entries = []; $container = new self(); - foreach ($itemtypes[$item->getType()] as $tab_name) { + foreach ($itemtypes[$item->getType()] as $tab_name => $tab_label) { // needs to check if entity of item is in hierachy of $tab_name foreach ($container->find(['is_active' => 1, 'name' => $tab_name]) as $data) { $dataitemtypes = json_decode($data['itemtypes']);