Fix LSattribute::getDisplayValue() when called on updated attribute

This commit is contained in:
Benjamin Renard 2023-09-18 16:58:46 +02:00
parent 961740c855
commit 95f60a534a
Signed by: bn8
GPG key ID: 3E2E1CE1907115BC

View file

@ -256,15 +256,9 @@ class LSattribute extends LSlog_staticLoggerClass {
return false; return false;
} }
if ($data !== false) { $data = $this -> ldap -> getDisplayValue(
$data = $this -> ldap -> getDisplayValue($data); $data !== false ? $data : $this -> getValue()
} );
elseif ($this -> isUpdate()) {
$data = $this -> ldap -> getDisplayValue($this -> updateData);
}
else {
$data = $this -> ldap -> getDisplayValue($this -> data);
}
$onDisplay = $this -> getConfig('onDisplay'); $onDisplay = $this -> getConfig('onDisplay');
if ($onDisplay) { if ($onDisplay) {