summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2012-04-08 10:37:24 (GMT)
committerJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2012-04-08 10:37:24 (GMT)
commit54f6a96bbbd67f9303a32f159d4ddc529b944fa1 (patch)
tree38b07be3eee49cab1a9d9bb73c20cafb466ce6fa
parentcfefc95f15e052edc8a23fb686bea2425fe6c9a6 (diff)
downloadkolab-wap-54f6a96bbbd67f9303a32f159d4ddc529b944fa1.tar.gz
Add the member attribute to the system tab on group information display
Use either displayname or cn as the attribute to use to render the auto-complete list
-rw-r--r--lib/client/kolab_client_task_group.php10
1 files changed, 9 insertions, 1 deletions
diff --git a/lib/client/kolab_client_task_group.php b/lib/client/kolab_client_task_group.php
index 5816408..d014a21 100644
--- a/lib/client/kolab_client_task_group.php
+++ b/lib/client/kolab_client_task_group.php
@@ -207,6 +207,7 @@ class kolab_client_task_group extends kolab_client_task
'cn' => 'system',
'gidnumber' => 'system',
'mail' => 'system',
+ 'member' => 'system',
'uniquemember' => 'system',
'memberurl' => 'system',
);
@@ -280,7 +281,14 @@ class kolab_client_task_group extends kolab_client_task
{
// convert to key=>value array, see kolab_api_service_form_value::list_options_uniquemember()
foreach ($list as $idx => $value) {
- $list[$idx] = $value['displayname'];
+ if (!empty($value['displayname'])) {
+ $list[$idx] = $value['displayname'];
+ } elseif (!empty($value['cn'])) {
+ $list[$idx] = $value['cn'];
+ } else {
+ console("No display name or cn for $idx");
+ }
+
if (!empty($value['mail'])) {
$list[$idx] .= ' <' . $value['mail'] . '>';
}