Code

Updated myAccount grayout handling
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 3 Mar 2010 09:09:20 +0000 (09:09 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 3 Mar 2010 09:09:20 +0000 (09:09 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@15880 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/plugins/personal/myaccount/main.inc

index 07924d2409c6e7dbca2adf5a03880e3095d0c9c7..6983ebb811912b591a93b3fe5ef199fbd75a2d3a 100644 (file)
@@ -26,6 +26,7 @@
 $lock_msg="";
 if ($remove_lock || isset($_POST['edit_cancel'])){
   if(session::is_set('MyAccountTabs') && session::is_set('edit')){
+    session::un_set('MyAccountTabs');
     del_lock($ui->dn);
   }
 }
@@ -76,6 +77,7 @@ if (! $cleanup ){
     /* No errors, save object */
     if (count ($message) == 0){
       $MyAccountTabs->save ();
+      $MyAccountTabs->setReadOnly(TRUE);
       del_lock ($ui->dn);
       session::un_set ('edit');