//small fix on Category::cleanPositions()

This commit is contained in:
vAugagneur
2013-03-08 17:35:41 +01:00
parent c3893b94bf
commit 1635178391
+1 -1
View File
@@ -1161,7 +1161,7 @@ class CategoryCore extends ObjectModel
UPDATE `'._DB_PREFIX_.'category` c
LEFT JOIN `'._DB_PREFIX_.'category_shop` cs
ON (c.`id_category` = cs.`id_category` AND cs.`id_shop` = '.(int)$id_shop.')
SET cs.`position` = '.(int)$i.'
SET cs.`position` = '.(int)($i+1).'
WHERE c.`id_parent` = '.(int)$id_category_parent.'
AND c.`id_category` = '.(int)$result[$i]['id_category'];
$return &= Db::getInstance()->execute($sql);