diff --git a/inc/container.class.php b/inc/container.class.php index eb6712ec..5bd0c037 100644 --- a/inc/container.class.php +++ b/inc/container.class.php @@ -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 = [];