summaryrefslogtreecommitdiffstats
path: root/lib/api/kolab_api_service_user.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/api/kolab_api_service_user.php')
-rw-r--r--lib/api/kolab_api_service_user.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/api/kolab_api_service_user.php b/lib/api/kolab_api_service_user.php
index 4c0b53a..903771e 100644
--- a/lib/api/kolab_api_service_user.php
+++ b/lib/api/kolab_api_service_user.php
@@ -62,9 +62,9 @@ class kolab_api_service_user extends kolab_api_service
if (isset($uta['auto_form_fields'])) {
foreach ($uta['auto_form_fields'] as $key => $value) {
if (empty($postdata[$key])) {
- $method = 'generate_' . $key;
- $res = $form_service->$method($getdata, $postdata);
- $postdata[$key] = $res[$key];
+ $postdata['attribute'] = $key;
+ $res = $form_service->generate($getdata, $postdata);
+ $postdata[$key] = $res[$key];
}
$user_attributes[$key] = $postdata[$key];
}