From 29f9bc52f7b2947c1191b15ed777d9574ce1f693 Mon Sep 17 00:00:00 2001 From: hickert Date: Mon, 1 Feb 2010 08:04:17 +0000 Subject: [PATCH] Fixed server service git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@15508 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../systems/admin/systems/class_serverService.inc | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/gosa-plugins/systems/admin/systems/class_serverService.inc b/gosa-plugins/systems/admin/systems/class_serverService.inc index 0732ebed5..39b8670f1 100644 --- a/gosa-plugins/systems/admin/systems/class_serverService.inc +++ b/gosa-plugins/systems/admin/systems/class_serverService.inc @@ -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; } -- 2.30.2