From 95fc50f0fb8491807aa02e9dd97ff8b950aa5933 Mon Sep 17 00:00:00 2001 From: mMarinetti Date: Fri, 23 Sep 2011 16:25:15 +0000 Subject: [PATCH] // fix displaying subtab with old system git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@8752 b9a71923-0436-4b27-9f14-aed3839534dd --- admin-dev/header.inc.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/admin-dev/header.inc.php b/admin-dev/header.inc.php index d87b1bef1..6b490d64b 100644 --- a/admin-dev/header.inc.php +++ b/admin-dev/header.inc.php @@ -277,8 +277,9 @@ echo ' if (empty($tab)) echo ''; - -$id_parent_tab_current = (int)(Tab::getCurrentParentId()); +// This is made to display the subtab list +$id_current_tab = (int)(Tab::getIdFromClassName(Dispatcher::$controllers[$tab])); +$myCurrentTab = new Tab($id_current_tab); $tabs = Tab::getTabs(Context::getContext()->language->id, 0); $echoLis = ''; $mainsubtablist = ''; @@ -289,7 +290,7 @@ foreach ($tabs AS $t) $img = (Tools::file_exists_cache(_PS_ADMIN_DIR_.'/themes/'.Context::getContext()->employee->bo_theme.'/img/t/'.$t['class_name'].'.gif') ? 'themes/'.Context::getContext()->employee->bo_theme.'/img/' : _PS_IMG_).'t/'.$t['class_name'].'.gif'; if (trim($t['module']) != '') $img = _MODULE_DIR_.$t['module'].'/'.$t['class_name'].'.gif'; - $current = ((strtolower($t['class_name']) == $tab) OR ($id_parent_tab_current == $t['id_tab'])); + $current = ((strtolower($t['class_name']) == $tab) OR ($myCurrentTab->id_parent == $t['id_tab'])); echo '