summaryrefslogtreecommitdiff
path: root/lib/api/kolab_api_service_form_value.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/api/kolab_api_service_form_value.php')
-rw-r--r--lib/api/kolab_api_service_form_value.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/api/kolab_api_service_form_value.php b/lib/api/kolab_api_service_form_value.php
index fa8d19d..3f53d79 100644
--- a/lib/api/kolab_api_service_form_value.php
+++ b/lib/api/kolab_api_service_form_value.php
@@ -460,7 +460,7 @@ class kolab_api_service_form_value extends kolab_api_service
$keyword = array('value' => $postdata['search']);
$data = array(
- 'attributes' => array('displayname', 'mail'),
+ 'attributes' => array('cn'),
'page_size' => 15,
'search' => array(
'displayname' => $keyword,
@@ -474,7 +474,7 @@ class kolab_api_service_form_value extends kolab_api_service
// convert to key=>value array
foreach ($list as $idx => $value) {
- $list[$idx] = is_array($value['cn']) ? implode('/', $value['cn']) : $value['cn'];
+ $list[$idx] = $value['cn'];
}
return $list;