// removing categories shop association

This commit is contained in:
vChabot
2011-12-21 16:05:42 +00:00
parent 6902ea817e
commit f67ad04205
3 changed files with 0 additions and 47 deletions
@@ -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());
}
}