Branch 'kolab-webadmin-3.1' - lib/api

Aleksander Machniak machniak at kolabsys.com
Mon Sep 23 09:27:53 CEST 2013


 lib/api/kolab_api_service_form_value.php |    5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

New commits:
commit 973d6bf70f90ac87678cc895f2b464dfd730426b
Author: Aleksander Machniak <alec at alec.pl>
Date:   Mon Sep 23 09:25:21 2013 +0200

    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)

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]'




More information about the commits mailing list