LSform::validate(): fix checking elements's errors after getPostData()

This commit is contained in:
Benjamin Renard 2020-06-30 10:00:22 +02:00
parent e44be00ebd
commit d456240fde

View file

@ -318,6 +318,9 @@ class LSform {
LSerror :: addErrorCode('LSform_01'); LSerror :: addErrorCode('LSform_01');
return; return;
} }
// Check getPostData do not trigger fields errors
if(!$this -> can_validate)
return;
$this -> setValuesFromPostData(); $this -> setValuesFromPostData();
//Validation des données ici !!! /// //Validation des données ici !!! ///
if (!$this -> checkData()) { if (!$this -> checkData()) {