[-] 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 committed 2012-06-18 14:08:45 +00:00
1 parent 5565791f61
commit 0fd642237f
1 file changed
+1 -1
+1 -1
View File
@@ -271,7 +271,7 @@ class AdminTabsControllerCore extends AdminController
else else
Tools::redirectAdmin(self::$currentIndex.'&conf=5&token='.Tools::getAdminTokenLite('AdminTabs')); 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'); $this->errors[] = Tools::displayError('You can\'t put this tab in itself');
else else
{ {