mirror of
https://gitlab.easter-eggs.com/ee/ldapsaisie.git
synced 2024-11-22 18:09:06 +01:00
LSformElement::valueWithUnit : Added compatibility with data entry form
This commit is contained in:
parent
3838af68bf
commit
e224144fdd
1 changed files with 6 additions and 0 deletions
|
@ -149,6 +149,12 @@ class LSformElement_valueWithUnit extends LSformElement {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (isset($_POST[$this -> name])) {
|
||||||
|
if(!is_array($_POST[$this -> name])) {
|
||||||
|
$_POST[$this -> name] = array($_POST[$this -> name]);
|
||||||
|
}
|
||||||
|
$return[$this -> name]=array_merge($return[$this -> name],$_POST[$this -> name]);
|
||||||
|
}
|
||||||
if (isset($_POST[$this -> name.'_value'])) {
|
if (isset($_POST[$this -> name.'_value'])) {
|
||||||
if (!is_array($_POST[$this -> name.'_value'])) {
|
if (!is_array($_POST[$this -> name.'_value'])) {
|
||||||
$_POST[$this -> name.'_value']=array($_POST[$this -> name.'_value']);
|
$_POST[$this -> name.'_value']=array($_POST[$this -> name.'_value']);
|
||||||
|
|
Loading…
Reference in a new issue