Skip to content

Commit

Permalink
Fix field Tab Display label (#848)
Browse files Browse the repository at this point in the history
* Fix tab Label

* Update field.class.php

* Add suggestion
  • Loading branch information
Lainow authored Oct 18, 2024
1 parent 0e38b35 commit afdf345
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 @@ -1152,7 +1152,7 @@ public function getTabNameForItem(CommonGLPI $item, $withtemplate = 0)
if (!$item->isEntityAssign() || in_array($item->fields['entities_id'], $entities)) {
$display_condition = new PluginFieldsContainerDisplayCondition();
if ($display_condition->computeDisplayContainer($item, $data['id'])) {
$tabs_entries[$tab_name] = $tab_label;
$tabs_entries[$tab_name] = $data['label'];
}
}
}
Expand Down

0 comments on commit afdf345

Please sign in to comment.