diff --git a/classes/ObjectModel.php b/classes/ObjectModel.php index 83fdb7516..27e1560db 100644 --- a/classes/ObjectModel.php +++ b/classes/ObjectModel.php @@ -763,6 +763,9 @@ abstract class ObjectModelCore if (!array_key_exists('active', $this)) throw new PrestaShopException('property "active" is missing in object '.get_class($this)); + // Update only active field + $this->setFieldsToUpdate(array('active' => true)); + // Update active status on object $this->active = !(int)$this->active; @@ -1608,4 +1611,4 @@ abstract class ObjectModelCore { $this->update_fields = $fields; } -} \ No newline at end of file +}