mirror of
https://gitlab.easter-eggs.com/ee/ldapsaisie.git
synced 2024-11-16 15:33:02 +01:00
LSattribute: fix handling default_value in generateValue()
This commit is contained in:
parent
852b375964
commit
f6a6c226f4
1 changed files with 2 additions and 2 deletions
|
@ -470,9 +470,9 @@ class LSattribute extends LSlog_staticLoggerClass {
|
||||||
* @retval boolean true si la valeur à put être générée, false sinon
|
* @retval boolean true si la valeur à put être générée, false sinon
|
||||||
*/
|
*/
|
||||||
public function generateValue() {
|
public function generateValue() {
|
||||||
$value = false;
|
$value = $this -> getConfig('default_value', false);
|
||||||
$generate_function = $this -> getConfig('generate_function');
|
$generate_function = $this -> getConfig('generate_function');
|
||||||
$format = $this -> getConfig('generate_value_format', $this -> getConfig('default_value'));
|
$format = $this -> getConfig('generate_value_format');
|
||||||
if ($generate_function && function_exists($generate_function)) {
|
if ($generate_function && function_exists($generate_function)) {
|
||||||
$value = call_user_func_array($generate_function, array(&$this -> ldapObject));
|
$value = call_user_func_array($generate_function, array(&$this -> ldapObject));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue