From 10ef2fdc4c2590098d84d3ef1767d0103d229222 Mon Sep 17 00:00:00 2001 From: hickert Date: Fri, 25 Apr 2008 12:27:38 +0000 Subject: [PATCH] Fixed service plugin initializations. Parent wasn't correct initialized git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@10692 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../systems/services/repository/class_servRepository.inc | 2 +- .../systems/admin/systems/class_serverService.inc | 8 +++++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/gosa-plugins/goto/admin/systems/services/repository/class_servRepository.inc b/gosa-plugins/goto/admin/systems/services/repository/class_servRepository.inc index f7817858b..4f2a6adb2 100644 --- a/gosa-plugins/goto/admin/systems/services/repository/class_servRepository.inc +++ b/gosa-plugins/goto/admin/systems/services/repository/class_servRepository.inc @@ -21,7 +21,7 @@ class servrepository extends goService function servrepository (&$config, $dn= NULL, $parent= NULL) { - plugin::plugin ($config, $dn,$parent->parent); + plugin::plugin ($config, $dn,$parent); $this->DisplayName = _("Repository service"); diff --git a/gosa-plugins/systems/admin/systems/class_serverService.inc b/gosa-plugins/systems/admin/systems/class_serverService.inc index 650859277..80f521c90 100644 --- a/gosa-plugins/systems/admin/systems/class_serverService.inc +++ b/gosa-plugins/systems/admin/systems/class_serverService.inc @@ -53,6 +53,12 @@ class ServerService extends plugin plugin::plugin($config); $this->parent = $parent; $this->dn= $dn; + + /* Adapt parent attributes */ + if(isset($this->parent->attrs)){ + $this->attrs = $this->parent->attrs; + } + foreach ($config->data['TABS']['SERVERSERVICE'] as $plug){ if(class_available($plug['CLASS'])){ @@ -157,7 +163,7 @@ class ServerService extends plugin if($s_action == "RemoveSingleService"){ /* Create resetted obj */ - $new_obj = new $s_entry($this->config,$this->dn); + $new_obj = new $s_entry($this->config,$this->dn,&$this); $new_obj -> set_acl_base($this->acl_base); $new_obj -> set_acl_category(preg_replace("/\/$/","",$this->acl_category)); $tmp = $new_obj->getListEntry(); -- 2.30.2