[-] BO : Set correct table alias name in updatePosition

This commit is contained in:
Mikko Hellsing committed 2013-12-11 02:09:45 +01:00
1 parent 1dcc5e288c
commit addb65eb5f
1 file changed
+1 -1
+1 -1
View File
@@ -1151,7 +1151,7 @@ class CategoryCore extends ObjectModel
if (!$res = Db::getInstance()->executeS(' if (!$res = Db::getInstance()->executeS('
SELECT cp.`id_category`, category_shop.`position`, cp.`id_parent` SELECT cp.`id_category`, category_shop.`position`, cp.`id_parent`
FROM `'._DB_PREFIX_.'category` cp FROM `'._DB_PREFIX_.'category` cp
'.Shop::addSqlAssociation('category', 'c').' '.Shop::addSqlAssociation('category', 'cp').'
WHERE cp.`id_parent` = '.(int)$this->id_parent.' WHERE cp.`id_parent` = '.(int)$this->id_parent.'
ORDER BY category_shop.`position` ASC' ORDER BY category_shop.`position` ASC'
)) ))