mirror of
https://gitlab.easter-eggs.com/ee/ldapsaisie.git
synced 2024-11-23 02:19:07 +01:00
LSform :: dataEntryForm : Added requiredAllAttributes parameter
This commit is contained in:
parent
8e7fb51570
commit
e6eb1b56c5
1 changed files with 2 additions and 2 deletions
|
@ -140,7 +140,7 @@ class LSform {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
$element = $this -> elements[$elementName];
|
$element = $this -> elements[$elementName];
|
||||||
if (isset($this -> dataEntryFormConfig['requiredAttributes']) && is_array($this -> dataEntryFormConfig['requiredAttributes']) && in_array($elementName,$this -> dataEntryFormConfig['requiredAttributes'])) {
|
if ((isset($this -> dataEntryFormConfig['requiredAllAttributes']) && $this -> dataEntryFormConfig['requiredAllAttributes']) || isset($this -> dataEntryFormConfig['requiredAttributes']) && is_array($this -> dataEntryFormConfig['requiredAttributes']) && in_array($elementName,$this -> dataEntryFormConfig['requiredAttributes'])) {
|
||||||
$element -> setRequired();
|
$element -> setRequired();
|
||||||
}
|
}
|
||||||
$field = array();
|
$field = array();
|
||||||
|
@ -435,7 +435,7 @@ class LSform {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
$element = $this -> elements[$elementName];
|
$element = $this -> elements[$elementName];
|
||||||
if (isset($this -> dataEntryFormConfig['requiredAttributes']) && is_array($this -> dataEntryFormConfig['requiredAttributes']) && in_array($elementName,$this -> dataEntryFormConfig['requiredAttributes'])) {
|
if ((isset($this -> dataEntryFormConfig['requiredAllAttributes']) && $this -> dataEntryFormConfig['requiredAllAttributes']) || isset($this -> dataEntryFormConfig['requiredAttributes']) && is_array($this -> dataEntryFormConfig['requiredAttributes']) && in_array($elementName,$this -> dataEntryFormConfig['requiredAttributes'])) {
|
||||||
$element -> setRequired();
|
$element -> setRequired();
|
||||||
}
|
}
|
||||||
if( !($element -> getPostData($this -> _postData)) ) {
|
if( !($element -> getPostData($this -> _postData)) ) {
|
||||||
|
|
Loading…
Reference in a new issue