From: hickert Date: Thu, 24 Apr 2008 10:50:03 +0000 (+0000) Subject: Updated service handling - Save object was called to often X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=3bed4a4bb6a9b9d98622329bc9ae41a8cd9cdbe6;p=gosa.git Updated service handling - Save object was called to often git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@10670 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-plugins/systems/admin/systems/class_serverService.inc b/gosa-plugins/systems/admin/systems/class_serverService.inc index 14ff1970e..b9b7c7381 100644 --- a/gosa-plugins/systems/admin/systems/class_serverService.inc +++ b/gosa-plugins/systems/admin/systems/class_serverService.inc @@ -46,10 +46,12 @@ class ServerService extends plugin var $backup = NULL; var $acl ; var $cn; + var $parent ; - function ServerService (&$config, $dn) + function ServerService (&$config, $dn,$parent) { plugin::plugin($config); + $this->parent = $parent; $this->dn= $dn; foreach ($config->data['TABS']['SERVERSERVICE'] as $plug){ @@ -57,7 +59,7 @@ class ServerService extends plugin $name= $plug['CLASS']; $this->plugin_names[]= $name; - $this->plugins[$name]= new $name($config, $dn); + $this->plugins[$name]= new $name($config, $dn,&$this); /* Capture all service objectClases, necessary for acl handling */ if(isset($this->plugins[$name]->objectclasses)){ @@ -214,7 +216,7 @@ class ServerService extends plugin /* Abort dialog */ if(isset($_POST['SaveService']) && is_object($this->dialog)){ - $this->dialog->save_object(); +# $this->dialog->save_object(); $msgs = $this->dialog->check(); if(count($msgs)){ foreach($msgs as $msg){ @@ -244,7 +246,7 @@ class ServerService extends plugin /* There is currently a subdialog open, display this dialog */ if(is_object($this->dialog)){ - $this->dialog->save_object(); +# $this->dialog->save_object(); return($this->dialog->execute()); } @@ -392,10 +394,9 @@ class ServerService extends plugin function save_object() { foreach($this->plugins as $name => $obj){ - -# if($obj->is_account){ -# $this->plugins[$name]->save_object(); -# } + if($obj->is_account){ + $this->plugins[$name]->save_object(); + } } }