diff options
author | Aleksander Machniak <alec@alec.pl> | 2012-03-29 13:35:49 (GMT) |
---|---|---|
committer | Aleksander Machniak <alec@alec.pl> | 2012-03-29 13:35:49 (GMT) |
commit | 73e01fe5af2dcebed7dbe2a712994f233df1e935 (patch) | |
tree | c39a80a3f5c1dee451a80b4f8f8c070ba7269987 /lib/api/kolab_api_service_form_value.php | |
parent | 3a269be5be0e73d7f7da0c8779208024c6a2c61a (diff) | |
download | kolab-wap-73e01fe5af2dcebed7dbe2a712994f233df1e935.tar.gz |
Fix so user roles names are listed instead of DNs
Diffstat (limited to 'lib/api/kolab_api_service_form_value.php')
-rw-r--r-- | lib/api/kolab_api_service_form_value.php | 4 |
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; |