summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2014-07-16 11:38:01 +0200
committerAleksander Machniak <alec@alec.pl>2014-07-16 11:38:01 +0200
commit0a96bdf74d829cd230718243eeb733ad4e71bf5a (patch)
tree4250a4a04bf2ba94a4d80108a57b7911ee7e8bde
parent3cb61e7528c2a8544083bf14e02ea4b9387671fb (diff)
Don't overwrite the whole fieldmap so autocomplete names are resolved correctly
-rw-r--r--plugins/acl/acl.php6
1 files changed, 2 insertions, 4 deletions
diff --git a/plugins/acl/acl.php b/plugins/acl/acl.php
index 3e3bca9e1..5c4deb770 100644
--- a/plugins/acl/acl.php
+++ b/plugins/acl/acl.php
@@ -696,10 +696,8 @@ class acl extends rcube_plugin
}
// add UID field to fieldmap, so it will be returned in a record with name
- $config['fieldmap'] = array(
- 'name' => $name_field,
- 'uid' => $uid_field,
- );
+ $config['fieldmap']['name'] = $name_field;
+ $config['fieldmap']['uid'] = $uid_field;
// search in UID and name fields
$config['search_fields'] = array_values($config['fieldmap']);