diff options
author | Jeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com> | 2012-03-31 19:24:47 +0200 |
---|---|---|
committer | Jeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com> | 2012-03-31 19:24:47 +0200 |
commit | eb79ffcceaccd909f7b0cd09b025b2dfb6c426e0 (patch) | |
tree | 2d3c92009797fc86940aa5d7c96286b7978b00d1 /lib/api/kolab_api_service_form_value.php | |
parent | a727b5b890b7f7937c8df542289cafc7534e7f61 (diff) | |
download | webadmin-eb79ffcceaccd909f7b0cd09b025b2dfb6c426e0.tar.gz |
Generate the uid and preseed it into the recipient policy if it does not already exist.
Diffstat (limited to 'lib/api/kolab_api_service_form_value.php')
-rw-r--r-- | lib/api/kolab_api_service_form_value.php | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/api/kolab_api_service_form_value.php b/lib/api/kolab_api_service_form_value.php index fe3cf6c..f601bd9 100644 --- a/lib/api/kolab_api_service_form_value.php +++ b/lib/api/kolab_api_service_form_value.php @@ -346,6 +346,12 @@ class kolab_api_service_form_value extends kolab_api_service } } + if (array_key_exists('uid', $attribs['auto_form_fields'])) { + if (!array_key_exists('uid', $postdata)) { + $postdata['uid'] = $this->generate_uid($postdata, $attribs); + } + } + $primary_mail = kolab_recipient_policy::primary_mail($postdata); return $primary_mail; @@ -387,6 +393,12 @@ class kolab_api_service_form_value extends kolab_api_service } } + if (array_key_exists('uid', $attribs['auto_form_fields'])) { + if (!array_key_exists('uid', $postdata)) { + $postdata['uid'] = $this->generate_uid($postdata, $attribs); + } + } + $secondary_mail = kolab_recipient_policy::secondary_mail($postdata); return $secondary_mail; |