[-] BO : fixed bug #PSCFV-2285 - Unable to activate/deactivate a product from list

This commit is contained in:
vAugagneur
2012-05-14 08:10:19 +00:00
parent fb1501db11
commit 8ff9b2bd4c
+1 -5
View File
@@ -660,11 +660,7 @@ abstract class ObjectModelCore
$this->active = !(int)$this->active; $this->active = !(int)$this->active;
// Change status to active/inactive // Change status to active/inactive
return Db::getInstance()->execute(' return $this->update();
UPDATE `'.pSQL(_DB_PREFIX_.$this->def['table']).'`
SET `active` = !`active`
WHERE `'.pSQL($this->def['primary']).'` = '.(int)$this->id
);
} }
/** /**