From 84c3cd0d9be9d4de6f6a7df341b5f2095e78e67c Mon Sep 17 00:00:00 2001 From: Benjamin Renard Date: Tue, 23 Mar 2021 14:28:40 +0100 Subject: [PATCH] API::search method: fix handling custom attributes --- src/includes/routes.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/includes/routes.php b/src/includes/routes.php index a60411f4..d5e97136 100644 --- a/src/includes/routes.php +++ b/src/includes/routes.php @@ -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); }