[-] BO : fixed bug #PSCFV-2843 - Can't create first level admin tab

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@16064 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
vAugagneur
2012-06-18 14:08:45 +00:00
parent 5565791f61
commit 0fd642237f
+1 -1
View File
@@ -271,7 +271,7 @@ class AdminTabsControllerCore extends AdminController
else
Tools::redirectAdmin(self::$currentIndex.'&conf=5&token='.Tools::getAdminTokenLite('AdminTabs'));
}
elseif (Tools::isSubmit('submitAddtab') && Tools::getValue('id_tab') == Tools::getValue('id_parent'))
elseif (Tools::isSubmit('submitAddtab') && Tools::getValue('id_tab') === Tools::getValue('id_parent'))
$this->errors[] = Tools::displayError('You can\'t put this tab in itself');
else
{