summaryrefslogtreecommitdiffstats
path: root/lib/api/kolab_api_service_user.php
diff options
context:
space:
mode:
authorAleksander Machniak <machniak@kolabsys.com>2012-03-15 09:56:41 +0100
committerAleksander Machniak <machniak@kolabsys.com>2012-03-15 09:56:41 +0100
commit462b589bd11e1bab55c0cb4a6dcb37e19d44093f (patch)
tree4f4073029aac30dc085f8b9ddc385ecf9a9f3c8f /lib/api/kolab_api_service_user.php
parent14c80a0ed15dd961d1a5a39e433c3714b1fab9f7 (diff)
downloadwebadmin-462b589bd11e1bab55c0cb4a6dcb37e19d44093f.tar.gz
Improve form_value.generate to support many attributes at a time
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 32f6b22..d8e79e7 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])) {
- $postdata['attribute'] = $key;
- $res = $form_service->generate($getdata, $postdata);
- $postdata[$key] = $res[$key];
+ $postdata['attributes'] = array($key);
+ $res = $form_service->generate($getdata, $postdata);
+ $postdata[$key] = $res[$key];
}
$user_attributes[$key] = $postdata[$key];
}