Code

Added snapshot to gofonmacros
[gosa.git] / plugins / gofon / phoneaccount / main.inc
index 19bc2be7840516f0061a911a32099af0fd76b101..62675fd740cb740b160a28a986255c4ac137bf60 100644 (file)
@@ -62,7 +62,7 @@ if (!$remove_lock){
        } else {
                $acl= get_permissions ($ui->dn, $ui->subtreeACL);
                $editacl= get_module_permission($acl, "phoneAccount", $ui->dn);
-               $phoneAccount->acl= "#none#";
+               $phoneAccount->acl="#none#"; 
        }
 
        /* save changes to LDAP and disable edit mode */
@@ -74,12 +74,13 @@ if (!$remove_lock){
                /* No errors, save object */
                if (count ($message) == 0){
                        $phoneAccount->save ();
+
+                       $phoneAccount->acl="#none#"; 
                        gosa_log ("User/phone object'".$ui->dn."' has been saved");
-                       $phoneAccount->acl= "#none#";
                        del_lock ($ui->dn);
                        sess_del ('edit');
 
-                        /* Write back to session */
+                       /* Write back to session */
                        $_SESSION['phoneAccount']= $phoneAccount;
                } else {
                        /* Errors found, show message */
@@ -101,7 +102,7 @@ if (!$remove_lock){
 
                /* Are we in edit mode? */
                if (isset($_SESSION['edit'])){
-                       $display.= "<input type=submit name=\"edit_finish\" value=\""._("Finish")."\">\n";
+                       $display.= "<input type=submit name=\"edit_finish\" style=\"width:80px\" value=\""._("Ok")."\">\n";
                        $display.= "&nbsp;";
                        $display.= "<input type=submit name=\"edit_cancel\" value=\""._("Cancel")."\">\n";
                        $info= "<img alt=\"\" align=\"middle\" src=\"".get_template_path('images/closedlock.png')."\"> ".$ui->dn."&nbsp;";