This commit is contained in:
Laurent Destailleur 2021-09-28 12:12:11 +02:00
parent 0e3ec3ea2d
commit a70f5dd90e

View File

@ -2047,9 +2047,9 @@ class ExtraFields
* *
* @param array $extralabels Deprecated (old $array of extrafields, now set this to null) * @param array $extralabels Deprecated (old $array of extrafields, now set this to null)
* @param object $object Object * @param object $object Object
* @param string $onlykey Only some keys are filled:$this * @param string $onlykey Only some keys are filled:
* 'string' => When we make update of only one extrafield ($action = 'update_extras'), calling page can set this to avoid to have other extrafields being reset. * 'string' => When we make update of only one extrafield ($action = 'update_extras'), calling page can set this to avoid to have other extrafields being reset.
* '@GETPOSTISSET' => When we make update of extrafields ($action = 'update'), calling page can set this to avoid to have fields not into POST being reset. * '@GETPOSTISSET' => When we make update of several extrafields ($action = 'update'), calling page can set this to avoid to have fields not into POST being reset.
* @return int 1 if array_options set, 0 if no value, -1 if error (field required missing for example) * @return int 1 if array_options set, 0 if no value, -1 if error (field required missing for example)
*/ */
public function setOptionalsFromPost($extralabels, &$object, $onlykey = '') public function setOptionalsFromPost($extralabels, &$object, $onlykey = '')