// removing categories shop association
This commit is contained in:
@@ -118,9 +118,6 @@ class AdminCategoriesControllerCore extends AdminController
|
||||
|
||||
public function getList($id_lang, $order_by = null, $order_way = null, $start = 0, $limit = null, $id_lang_shop = false)
|
||||
{
|
||||
// we add restriction for shop
|
||||
$this->_join = 'LEFT JOIN `'._DB_PREFIX_.'category_shop` cs ON a.`id_category` = cs.`id_category`';
|
||||
$this->_where = ' AND cs.`id_shop` = '.(int)Context::getContext()->shop->getID(true);
|
||||
parent::getList($id_lang, 'position', $order_way, $start, $limit, Context::getContext()->shop->getID(true));
|
||||
// Check each row to see if there are combinations and get the correct action in consequence
|
||||
|
||||
@@ -433,12 +430,6 @@ class AdminCategoriesControllerCore extends AdminController
|
||||
{
|
||||
return strip_tags(stripslashes($description));
|
||||
}
|
||||
|
||||
public function afterAdd($object)
|
||||
{
|
||||
// associate the category to the context shop
|
||||
$object->addShop($this->context->shop->getID());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user