mirror of
https://gitlab.easter-eggs.com/ee/ldapsaisie.git
synced 2024-11-22 18:09:06 +01:00
LSformElement_supannCompositeAttribute::getPostData(): fix handing empty form value
This commit is contained in:
parent
e8b8dd1730
commit
3161ace3b7
1 changed files with 6 additions and 1 deletions
|
@ -400,6 +400,11 @@ class LSformElement_supannCompositeAttribute extends LSformElement {
|
||||||
}
|
}
|
||||||
self :: log_debug($this." -> getPostData(): POST data = ".varDump($parseValues));
|
self :: log_debug($this." -> getPostData(): POST data = ".varDump($parseValues));
|
||||||
|
|
||||||
|
if (!$parseValue && $onlyIfPresent)
|
||||||
|
return true;
|
||||||
|
|
||||||
|
$return[$this -> name] = array();
|
||||||
|
|
||||||
// Check extracted values
|
// Check extracted values
|
||||||
$errors = array();
|
$errors = array();
|
||||||
foreach ($parseValues as $parseValue) {
|
foreach ($parseValues as $parseValue) {
|
||||||
|
@ -498,7 +503,7 @@ class LSformElement_supannCompositeAttribute extends LSformElement {
|
||||||
foreach($errors as $e)
|
foreach($errors as $e)
|
||||||
$this -> form -> setElementError($this -> attr_html, $e);
|
$this -> form -> setElementError($this -> attr_html, $e);
|
||||||
$this -> _postParsedData = $parseValues;
|
$this -> _postParsedData = $parseValues;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue