Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions inc/container.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -1138,6 +1138,11 @@ public static function getUsedItemtypes($type = 'all', $must_be_active = false)

public function getTabNameForItem(CommonGLPI $item, $withtemplate = 0)
{
if ($withtemplate) {
//Do not display tab from template or from item created from template
return '';
}

$itemtypes = self::getEntries('tab', true);
if (isset($itemtypes[$item->getType()]) && $item instanceof CommonDBTM) {
$tabs_entries = [];
Expand Down