Skip to content

Commit

Permalink
Add suggestion
Browse files Browse the repository at this point in the history
  • Loading branch information
Lainow committed Oct 18, 2024
1 parent 5718afc commit fd3d628
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion inc/container.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -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_labely) {
// 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']);
Expand Down

0 comments on commit fd3d628

Please sign in to comment.