[-] BO : fixed bug #PSCFV-4961 - Strange behavior when reordering categories

This commit is contained in:
vAugagneur
2013-01-09 13:44:19 +01:00
parent b64098f3f2
commit 66974a05e0
4 changed files with 5 additions and 4 deletions
@@ -168,7 +168,7 @@ class AdminCategoriesControllerCore extends AdminController
if (Shop::getContext() == Shop::CONTEXT_SHOP)
$this->_join .= ' LEFT JOIN `'._DB_PREFIX_.'category_shop` sa ON (a.`id_category` = sa.`id_category` AND sa.id_shop = '.(int)$this->context->shop->id.') ';
else
$this->_join .= ' LEFT JOIN `'._DB_PREFIX_.'category_shop` sa ON (a.`id_category` = sa.`id_category` AND sa.id_shop = a.id_shop_default) ';
$this->_join .= ' LEFT JOIN `'._DB_PREFIX_.'category_shop` sa ON (a.`id_category` = sa.`id_category` AND sa.id_shop = a.id_shop_default) ';
// we add restriction for shop
@@ -33,6 +33,7 @@ class AdminCmsCategoriesControllerCore extends AdminController
public function __construct()
{
$this->is_cms = true;
$this->table = 'cms_category';
$this->className = 'CMSCategory';
$this->lang = true;