summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2013-09-23 07:25:21 (GMT)
committerAleksander Machniak <alec@alec.pl>2013-09-23 07:27:45 (GMT)
commit973d6bf70f90ac87678cc895f2b464dfd730426b (patch)
treebe1ec98495b8d0e7a3d15b4dcf502fa3bf949159
parentb1155b64d7ff7a7c2768449b00960fff03d87caf (diff)
downloadkolab-wap-973d6bf70f90ac87678cc895f2b464dfd730426b.tar.gz
Fix bug where current user record wasn't skipped when secondary email addresses
were generated. This created too many entries for secondary addresses on change in user data (gn, sn)
-rw-r--r--lib/api/kolab_api_service_form_value.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/api/kolab_api_service_form_value.php b/lib/api/kolab_api_service_form_value.php
index 1b66760..e79c526 100644
--- a/lib/api/kolab_api_service_form_value.php
+++ b/lib/api/kolab_api_service_form_value.php
@@ -733,8 +733,9 @@ class kolab_api_service_form_value extends kolab_api_service
// TODO: Check for uniqueness. Not sure what to do if not unique.
$secondary_mail_addresses = Array();
- $auth = Auth::get_instance();
- $conf = Conf::get_instance();
+ $auth = Auth::get_instance();
+ $conf = Conf::get_instance();
+ $unique_attr = $this->unique_attribute();
// Find the authentication mechanism in order to be able to fall back from a
// '[$domain]' section setting for the mail attributes list, to an '[$auth_mech]'