Skip to content

Commit fd3d628

Browse files
committed
Add suggestion
1 parent 5718afc commit fd3d628

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

inc/container.class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1139,7 +1139,7 @@ public function getTabNameForItem(CommonGLPI $item, $withtemplate = 0)
11391139
if (isset($itemtypes[$item->getType()])) {
11401140
$tabs_entries = [];
11411141
$container = new self();
1142-
foreach ($itemtypes[$item->getType()] as $tab_name) {
1142+
foreach ($itemtypes[$item->getType()] as $tab_name => $tab_labely) {
11431143
// needs to check if entity of item is in hierachy of $tab_name
11441144
foreach ($container->find(['is_active' => 1, 'name' => $tab_name]) as $data) {
11451145
$dataitemtypes = json_decode($data['itemtypes']);

0 commit comments

Comments
 (0)