// Improve multishop code

This commit is contained in:
rMalie
2012-05-25 13:37:43 +00:00
parent 18287e76e6
commit 7c4aaa1c44
3 changed files with 4 additions and 47 deletions
@@ -106,7 +106,7 @@ class AdminCategoriesControllerCore extends AdminController
if (Shop::isFeatureActive() && Shop::getContext() != Shop::CONTEXT_SHOP)
unset($this->fields_list['position']);
// shop restriction : if category is not available for current shop, we redirect to the list from default category
if (!Shop::isCategoryAvailable($this->_category->id))
if (!$this->_category->isAssociatedToShop())
{
$this->redirect_after = self::$currentIndex.'&id_category='.(int)$this->context->shop->getCategory().'&token='.$this->token;
$this->redirect();