From d456240fde2195c3a5e6cd42e2214644cf629b84 Mon Sep 17 00:00:00 2001 From: Benjamin Renard Date: Tue, 30 Jun 2020 10:00:22 +0200 Subject: [PATCH] LSform::validate(): fix checking elements's errors after getPostData() --- src/includes/class/class.LSform.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/includes/class/class.LSform.php b/src/includes/class/class.LSform.php index ffe7275d..88d0520a 100644 --- a/src/includes/class/class.LSform.php +++ b/src/includes/class/class.LSform.php @@ -318,6 +318,9 @@ class LSform { LSerror :: addErrorCode('LSform_01'); return; } + // Check getPostData do not trigger fields errors + if(!$this -> can_validate) + return; $this -> setValuesFromPostData(); //Validation des données ici !!! /// if (!$this -> checkData()) {