[-] FO : ObjectModel/Db tried to add entities with a primary key pre-filled #PSCFV-3652 #PSCFV-3651
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@16879 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
@@ -450,6 +450,7 @@ abstract class ObjectModelCore
|
|||||||
$this->date_upd = date('Y-m-d H:i:s');
|
$this->date_upd = date('Y-m-d H:i:s');
|
||||||
|
|
||||||
// Database insertion
|
// Database insertion
|
||||||
|
unset($this->id);
|
||||||
if (!$result = ObjectModel::$db->insert($this->def['table'], $this->getFields(), $null_values))
|
if (!$result = ObjectModel::$db->insert($this->def['table'], $this->getFields(), $null_values))
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user