From c8acd48e34044bdf4d90ecb73250702207e22b8a Mon Sep 17 00:00:00 2001 From: Eric - CAP-REL <1468823+rycks@users.noreply.github.com> Date: Thu, 20 Nov 2025 23:58:15 +0100 Subject: [PATCH] setErrors does not exists, same solution as dolibarr v19.0 (#36107) * setErrors does not exists, same solution as dolibarr v19.0 * reload ci * reload ci 2 --------- Co-authored-by: Laurent Destailleur Co-authored-by: lvessiller-opendsi --- htdocs/core/class/html.formsetup.class.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/htdocs/core/class/html.formsetup.class.php b/htdocs/core/class/html.formsetup.class.php index 03b9695b18f..cbd0111e099 100644 --- a/htdocs/core/class/html.formsetup.class.php +++ b/htdocs/core/class/html.formsetup.class.php @@ -80,6 +80,10 @@ class FormSetup */ public $formHiddenInputs = array(); + /** + * @var string[] $errors + */ + public $errors = array(); /** * Constructor @@ -253,10 +257,9 @@ 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; } - if ($reshook > 0) { return $reshook; }