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;
}
if ($data !== false) {
$data = $this -> ldap -> getDisplayValue($data);
}
elseif ($this -> isUpdate()) {
$data = $this -> ldap -> getDisplayValue($this -> updateData);
}
else {
$data = $this -> ldap -> getDisplayValue($this -> data);
}
$data = $this -> ldap -> getDisplayValue(
$data !== false ? $data : $this -> getValue()
);
$onDisplay = $this -> getConfig('onDisplay');
if ($onDisplay) {