API::search method: fix handling custom attributes

This commit is contained in:
Benjamin Renard 2021-03-23 14:28:40 +01:00
parent d0397ec41e
commit 84c3cd0d9b

View file

@ -1644,7 +1644,9 @@ function handle_api_LSobject_search($request) {
if (!LSsession :: canAccess($LSobject, $obj -> dn, 'r', $attr))
continue;
$export -> elements[$attr] -> setValue(
$object -> attrs[$attr] -> getDisplayValue($obj -> $attr)
$object -> attrs[$attr] -> html -> refreshForm(
$object -> attrs[$attr] -> getFormVal($obj -> $attr)
)
);
$data['objects'][$obj -> dn][$attr] = $export -> elements[$attr] -> getApiValue(false);
}