// Merge -> revision 8507

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@8513 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
rMalie
2011-09-12 16:17:37 +00:00
parent 3c6a0944fa
commit b50c7e4334
67 changed files with 1938 additions and 1509 deletions
+9 -1
View File
@@ -393,9 +393,17 @@ class ProductCore extends ObjectModel
if (!parent::add($autodate, $nullValues))
return false;
$this->setStock($this->quantity);
Module::hookExec('afterSaveProduct', array('id_product' => $this->id));
return true;
}
public function update($nullValues = false)
{
$return = parent::update($nullValues);
Module::hookExec('afterSaveProduct', array('id_product' => $this->id));
return $return;
}
/**
* Check then return multilingual fields for database interaction
*
@@ -3567,4 +3575,4 @@ class ProductCore extends ObjectModel
return isset($row['reference']);
}
}
}