// Merge -> revision 8507

This commit is contained in:
rMalie
2011-09-12 16:17:37 +00:00
parent b404900911
commit a1bdb7b35e
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']);
}
}
}