mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2026-01-06 09:02:59 +01:00
fix doc and Call to an undefined method FormSetup::setErrors().
This commit is contained in:
@@ -77,6 +77,10 @@ class FormSetup
|
||||
*/
|
||||
public $formHiddenInputs = array();
|
||||
|
||||
/**
|
||||
* @var string[] $errors
|
||||
*/
|
||||
public $errors = array();
|
||||
|
||||
/**
|
||||
* Constructor
|
||||
@@ -248,7 +252,7 @@ class FormSetup
|
||||
$parameters = array();
|
||||
$reshook = $hookmanager->executeHooks('formSetupBeforeSaveConfFromPost', $parameters, $this); // Note that $action and $object may have been modified by some hooks
|
||||
if ($reshook < 0) {
|
||||
$this->setErrors($hookmanager->errors);
|
||||
$this->errors = $hookmanager->errors;
|
||||
return -1;
|
||||
}
|
||||
|
||||
@@ -619,7 +623,7 @@ class FormSetupItem
|
||||
public $setValueFromPostCallBack;
|
||||
|
||||
/**
|
||||
* @var string $errors
|
||||
* @var string[] $errors
|
||||
*/
|
||||
public $errors = array();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user