summaryrefslogtreecommitdiffstats
path: root/lib/api/kolab_api_service_user.php
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2012-03-14 10:00:10 +0100
committerAleksander Machniak <alec@alec.pl>2012-03-14 10:00:10 +0100
commitfa7994160bb410c1e8f35a0e91883b43b2ab9cfa (patch)
tree50ea974df3ef8fc7f0c3f227ebb8b850adaacd26 /lib/api/kolab_api_service_user.php
parent74a8a69bde41236851c099fd87cfd1e84e7acce6 (diff)
downloadwebadmin-fa7994160bb410c1e8f35a0e91883b43b2ab9cfa.tar.gz
Unified form_value.generate API method (#625)
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];
}