From 3741f8508b5e2f616d1c1c0388ddd79f3448d18c Mon Sep 17 00:00:00 2001 From: remicollet Date: Mon, 8 Aug 2011 13:02:34 +0000 Subject: [PATCH] fix getTabNameForItem proto git-svn-id: https://forge.glpi-project.org/svn/example/trunk@163 349b9182-4a13-0410-896f-e5e9767dd1b3 --- inc/example.class.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/inc/example.class.php b/inc/example.class.php index 25b6334..652c2a5 100644 --- a/inc/example.class.php +++ b/inc/example.class.php @@ -137,11 +137,10 @@ class PluginExampleExample extends CommonDBTM { } - function getTabNameForItem(CommonGLPI $item) { + function getTabNameForItem(CommonGLPI $item, $withtemplate=0) { global $LANG; - Toolbox::logDebug('getTabNameForItem', $item); - if ($item->getID()) { + if (!$withtemplate) { switch ($item->getType()) { case 'Phone' : if ($_SESSION['glpishow_count_on_tabs']) {