mirror of
https://gitlab.easter-eggs.com/ee/ldapsaisie.git
synced 2024-12-22 16:33:48 +01:00
LSattribute :: generateValue() : Fixed bug when generated value is an array.
This commit is contained in:
parent
20b6677210
commit
aeb54731ef
1 changed files with 4 additions and 2 deletions
|
@ -482,8 +482,10 @@ class LSattribute {
|
|||
$value = $this -> config['default_value'];
|
||||
}
|
||||
if (!empty($value)) {
|
||||
//$this -> setValue($value); // pas nécéssaire ??
|
||||
$this -> updateData=array($value);
|
||||
if (!is_array($value)) {
|
||||
$value=array($value);
|
||||
}
|
||||
$this -> updateData=$value;
|
||||
return true;
|
||||
}
|
||||
return;
|
||||
|
|
Loading…
Reference in a new issue