Fix: Missing error management

This commit is contained in:
Laurent Destailleur
2015-02-26 14:25:30 +01:00
parent fe7889e266
commit 4bde7e9f51
20 changed files with 90 additions and 62 deletions

View File

@@ -1063,7 +1063,7 @@ class ExtraFields
* @param array $extralabels $array of extrafields
* @param object $object Object
* @param string $onlykey Only following key is filled. When we make update of only one extrafield ($action = 'update_extras'), calling page must must set this to avoid to have other extrafields being reset.
* @return int 1 if array_options set / 0 if no value
* @return int 1 if array_options set, 0 if no value, -1 if error (field required missing for example)
*/
function setOptionalsFromPost($extralabels,&$object,$onlykey='')
{