[-] BO : BugFix : #PSCFV-3031 : Unable to edit categories from the list
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@16333 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
1 parent
15a5e7fa6c
commit
1fe456ce71
1 file changed
+1
-1
@@ -106,7 +106,7 @@ class AdminCategoriesControllerCore extends AdminController
|
|||||||
if (Shop::isFeatureActive() && Shop::getContext() != Shop::CONTEXT_SHOP)
|
if (Shop::isFeatureActive() && Shop::getContext() != Shop::CONTEXT_SHOP)
|
||||||
unset($this->fields_list['position']);
|
unset($this->fields_list['position']);
|
||||||
// shop restriction : if category is not available for current shop, we redirect to the list from default category
|
// shop restriction : if category is not available for current shop, we redirect to the list from default category
|
||||||
if (!$this->_category->isAssociatedToShop())
|
if (!$this->_category->isAssociatedToShop() && Shop::getContext() == Shop::CONTEXT_SHOP)
|
||||||
{
|
{
|
||||||
$this->redirect_after = self::$currentIndex.'&id_category='.(int)$this->context->shop->getCategory().'&token='.$this->token;
|
$this->redirect_after = self::$currentIndex.'&id_category='.(int)$this->context->shop->getCategory().'&token='.$this->token;
|
||||||
$this->redirect();
|
$this->redirect();
|
||||||
|
|||||||
Reference in new issue
Block a user