mirror of
https://gitlab.easter-eggs.com/ee/ldapsaisie.git
synced 2024-12-18 22:43:47 +01:00
LSform :: dataEntryForm : Added requiredAttributes parameter
This commit is contained in:
parent
405ceba157
commit
1ef8c15e2c
1 changed files with 6 additions and 0 deletions
|
@ -140,6 +140,9 @@ class LSform {
|
|||
continue;
|
||||
}
|
||||
$element = $this -> elements[$elementName];
|
||||
if (isset($this -> dataEntryFormConfig['requiredAttributes']) && is_array($this -> dataEntryFormConfig['requiredAttributes']) && in_array($elementName,$this -> dataEntryFormConfig['requiredAttributes'])) {
|
||||
$element -> setRequired();
|
||||
}
|
||||
$field = array();
|
||||
$field = $element -> getDisplay();
|
||||
if (isset($this -> _elementsErrors[$element -> name])) {
|
||||
|
@ -432,6 +435,9 @@ class LSform {
|
|||
continue;
|
||||
}
|
||||
$element = $this -> elements[$elementName];
|
||||
if (isset($this -> dataEntryFormConfig['requiredAttributes']) && is_array($this -> dataEntryFormConfig['requiredAttributes']) && in_array($elementName,$this -> dataEntryFormConfig['requiredAttributes'])) {
|
||||
$element -> setRequired();
|
||||
}
|
||||
if( !($element -> getPostData($this -> _postData)) ) {
|
||||
LSerror :: addErrorCode('LSform_02',$element_name);
|
||||
return;
|
||||
|
|
Loading…
Reference in a new issue