// Merge -> revision 8507
This commit is contained in:
1 parent
b404900911
commit
a1bdb7b35e
67 files changed
+1938
-1509
No files matched your search
+9
-1
@@ -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']);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user