// Merge -> revision 8507
This commit is contained in:
+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