summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/api/kolab_api_service_form_value.php12
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;