summaryrefslogtreecommitdiff
path: root/www/admin/sharedfolder/sf.php.in
diff options
context:
space:
mode:
Diffstat (limited to 'www/admin/sharedfolder/sf.php.in')
-rw-r--r--www/admin/sharedfolder/sf.php.in4
1 files changed, 4 insertions, 0 deletions
diff --git a/www/admin/sharedfolder/sf.php.in b/www/admin/sharedfolder/sf.php.in
index 38757dc..79a6645 100644
--- a/www/admin/sharedfolder/sf.php.in
+++ b/www/admin/sharedfolder/sf.php.in
@@ -31,6 +31,7 @@ function fill_form_for_modify( &$form, &$ldap_object ) {
if (is_array($ldap_object['cn'])) $cn = $ldap_object['cn'][0];
else $cn = $ldap_object['cn'];
$form->entries['cn']['value'] = $cn;
+ $form->entries['cn']['attrs'] = 'readonly';
if( in_array('cyrus-userquota',$ldap_object)) {
if (is_array($ldap_object['cyrus-userquota'])) $userquota = $ldap_object['cyrus-userquota'][0];
@@ -40,6 +41,7 @@ function fill_form_for_modify( &$form, &$ldap_object ) {
if (is_array($ldap_object['kolabHomeServer'])) $kolabhomeserver = $ldap_object['kolabHomeServer'][0];
$form->entries['kolabhomeserver']['value'] = $kolabhomeserver;
+ $form->entries['kolabhomeserver']['attrs'] = 'readonly';
if( in_array('kolabFolderType',$ldap_object)) {
if (is_array($ldap_object['kolabFolderType']))
@@ -162,6 +164,8 @@ if( !$errors ) {
case 'save':
if( $form->isSubmitted() ) {
if( !$form->validate() ) {
+ if($action != "firstsave")
+ fill_form_for_modify($form, $ldap_object);
$form->setValues();
$content = $form->outputForm();
} else {