[-] BO : fixed bug #PSCFV-4262

This commit is contained in:
vAugagneur committed 2012-09-28 09:32:18 +00:00
1 parent 5ab731f16d
commit 3ee70b56d7
1 file changed
+1 -2
@@ -545,9 +545,8 @@ class AdminCategoriesControllerCore extends AdminController
$object = parent::processAdd(); $object = parent::processAdd();
//if we create a you root category you have to associate to a shop before to add sub categories in. So we redirect to AdminCategories listing //if we create a you root category you have to associate to a shop before to add sub categories in. So we redirect to AdminCategories listing
if ($object && Tools::isSubmit('is_root_category')) if ($object && Tools::getValue('is_root_category'))
Tools::redirectAdmin(self::$currentIndex.'&token='.Tools::getAdminTokenLite('AdminCategories').'&conf=3'); Tools::redirectAdmin(self::$currentIndex.'&token='.Tools::getAdminTokenLite('AdminCategories').'&conf=3');
return $object; return $object;
} }