[*] BO : #PSFV-865 - it is now possible to use drag and drop positions in custom controllers using HelperList

This commit is contained in:
tDidierjean
2012-04-18 15:48:38 +00:00
parent 0a9aaee6b9
commit 45ea9fdaae
14 changed files with 340 additions and 432 deletions
+2 -2
View File
@@ -263,12 +263,12 @@ class FeatureCore extends ObjectModel
* @param integer $position
* @return boolean Update result
*/
public function updatePosition($way, $position)
public function updatePosition($way, $position, $id_feature)
{
if (!$res = Db::getInstance()->executeS('
SELECT `position`, `id_feature`
FROM `'._DB_PREFIX_.'feature`
WHERE `id_feature` = '.(int)Tools::getValue('id_feature', 1).'
WHERE `id_feature` = '.(int)($id_feature ? $id_feature : 1).'
ORDER BY `position` ASC'
))
return false;