// Fix bug with position of features
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@16041 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
+2
-2
@@ -263,12 +263,12 @@ class FeatureCore extends ObjectModel
|
||||
* @param integer $position
|
||||
* @return boolean Update result
|
||||
*/
|
||||
public function updatePosition($way, $position, $id_feature)
|
||||
public function updatePosition($way, $position, $id_feature = null)
|
||||
{
|
||||
if (!$res = Db::getInstance()->executeS('
|
||||
SELECT `position`, `id_feature`
|
||||
FROM `'._DB_PREFIX_.'feature`
|
||||
WHERE `id_feature` = '.(int)($id_feature ? $id_feature : 1).'
|
||||
WHERE `id_feature` = '.(int)($id_feature ? $id_feature : $this->id).'
|
||||
ORDER BY `position` ASC'
|
||||
))
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user