Code

Fixed server service
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 1 Feb 2010 08:04:17 +0000 (08:04 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 1 Feb 2010 08:04:17 +0000 (08:04 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@15508 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-plugins/systems/admin/systems/class_serverService.inc

index 0732ebed5aee9e1f6c9bbd74fdc29f7f9d7d7c1c..39b8670f1f9653af1eaa208a809031837523b004 100644 (file)
@@ -121,7 +121,7 @@ class ServerService extends management
     $action = management::detectPostActions();
     if(isset($_POST['SaveServiceAdd']))   $action['action'] = "newServiceSelected";
     if(isset($_POST['CancelServiceAdd'])) $action['action'] = "newServiceCancel";
-    if(isset($_POST['SaveService']))      $action['action'] = "save";
+    if(isset($_POST['SaveService']))      $action['action'] = "saveService";
     if(isset($_POST['CancelService']))    $action['action'] = "cancelService";
     return($action);
   }
@@ -196,13 +196,12 @@ class ServerService extends management
         msg_dialog::display(_("Error"), $msg, ERROR_DIALOG);
       }
     }else{
-      $this->plugins[$this->current] = $this->dialog;
-      $tmp  = get_object_vars($this->dialog);
+      $this->plugins[$this->current] = $this->dialogObject;
+      $tmp  = get_object_vars($this->dialogObject);
       foreach($tmp as $name => $value){
         $this->plugins[$this->current]->$name = $value;
       }
-      $this->current = "";
-      $this->dialog = FALSE;
+      $this->closeDialogs();
       $this->backup = NULL;
     }
   }
@@ -413,7 +412,6 @@ class ServerService extends management
         }
       }
 
-      /* Only show createable services */
       if(!$obj->acl_is_createable()){
         $skip = true;
       }