lib/hosted
Torsten Grote
grote at kolabsys.com
Wed Jul 11 13:50:33 CEST 2012
lib/hosted/kolab_client_task_signup.php | 7 +++++++
1 file changed, 7 insertions(+)
New commits:
commit 206411fa68a1ff934cd3302ba41f9d80442a66dd
Author: Torsten Grote <grote at kolabsys.com>
Date: Wed Jul 11 11:49:58 2012 +0200
prevent add mode so mail field value is kept when selecting user type
diff --git a/lib/hosted/kolab_client_task_signup.php b/lib/hosted/kolab_client_task_signup.php
index 8fe1bfc..b535650 100644
--- a/lib/hosted/kolab_client_task_signup.php
+++ b/lib/hosted/kolab_client_task_signup.php
@@ -178,6 +178,13 @@ class kolab_client_task_signup extends kolab_client_task
if (isset($fields['cn'])) {
$fields['cn']['type'] = kolab_form::INPUT_HIDDEN;
}
+
+ // Prevent add mode so mail field value is kept when selecting user type
+ $fields['id'] = array(
+ 'section' => 'system',
+ 'type' => kolab_form::INPUT_HIDDEN,
+ 'value' => 'test',
+ );
// Add password confirmation
if (isset($fields['userpassword'])) {
More information about the commits
mailing list