[*] BO : Enable current subtab active class

This commit is contained in:
gRoussac
2013-06-17 18:27:07 +02:00
parent 8fabee091b
commit aea53e034a
2 changed files with 6 additions and 4 deletions
+5 -3
View File
@@ -1335,11 +1335,13 @@ class AdminControllerCore extends Controller
foreach ($sub_tabs as $index2 => $sub_tab)
{
// class_name is the name of the class controller
if (Tab::checkTabRights($sub_tab['id_tab']) === true
&& (bool)$sub_tab['active'])
if (Tab::checkTabRights($sub_tab['id_tab']) === true && (bool)$sub_tab['active'])
{
$sub_tabs[$index2]['href'] = $this->context->link->getAdminLink($sub_tab['class_name']);
$sub_tabs[$index2]['current'] = ($sub_tab['class_name'].'Controller' == get_class($this));
}
else
unset($sub_tabs[$index2]);
unset($sub_tabs[$index2]);
}
$tabs[$index]['sub_tabs'] = $sub_tabs;