Merge pull request #1120 from aino/1.6
[-] BO : Set correct table alias name in updatePosition
This commit is contained in:
@@ -1151,7 +1151,7 @@ class CategoryCore extends ObjectModel
|
||||
if (!$res = Db::getInstance()->executeS('
|
||||
SELECT cp.`id_category`, category_shop.`position`, cp.`id_parent`
|
||||
FROM `'._DB_PREFIX_.'category` cp
|
||||
'.Shop::addSqlAssociation('category', 'c').'
|
||||
'.Shop::addSqlAssociation('category', 'cp').'
|
||||
WHERE cp.`id_parent` = '.(int)$this->id_parent.'
|
||||
ORDER BY category_shop.`position` ASC'
|
||||
))
|
||||
|
||||
Reference in New Issue
Block a user