From 0edc9f7422e48ef8cc79781927a8e61620a3e3ae Mon Sep 17 00:00:00 2001 From: hickert Date: Mon, 18 Oct 2010 09:42:35 +0000 Subject: [PATCH] Updated Class config management git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@20080 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../admin/ConfigManagement/DeviceConfig-list.xml | 2 +- .../ConfigManagement/class_ConfigManagement.inc | 16 +++------------- 2 files changed, 4 insertions(+), 14 deletions(-) diff --git a/gosa-plugins/goto/admin/ConfigManagement/DeviceConfig-list.xml b/gosa-plugins/goto/admin/ConfigManagement/DeviceConfig-list.xml index 9a6812df0..99bc644f8 100644 --- a/gosa-plugins/goto/admin/ConfigManagement/DeviceConfig-list.xml +++ b/gosa-plugins/goto/admin/ConfigManagement/DeviceConfig-list.xml @@ -6,7 +6,7 @@ false false true - + 1 diff --git a/gosa-plugins/goto/admin/ConfigManagement/class_ConfigManagement.inc b/gosa-plugins/goto/admin/ConfigManagement/class_ConfigManagement.inc index aecc3d3d8..d11bf2fc9 100644 --- a/gosa-plugins/goto/admin/ConfigManagement/class_ConfigManagement.inc +++ b/gosa-plugins/goto/admin/ConfigManagement/class_ConfigManagement.inc @@ -43,7 +43,6 @@ class ConfigManagement extends management // Some plugin related memebers which are not member of // the management class. See class plugin. public $initTime; - public $is_account = FALSE; public $ignore_account = FALSE; public $pl_notify; public $read_only; @@ -78,7 +77,6 @@ class ConfigManagement extends management */ function setInstallMethod($str) { - $this->is_account = FALSE; if(!isset($this->allItemConfigurations[$str])){ $this->itemConfig = array(); $this->invalidInstallMethod =TRUE; @@ -112,7 +110,6 @@ class ConfigManagement extends management $this->rootItemID = $idRoot; $this->setCurrentItem($idRoot); $this->setSelectedListItemID($idRoot); - $this->is_account = TRUE; $this->rebuildListing(); return(TRUE); } @@ -316,14 +313,7 @@ class ConfigManagement extends management $smarty->assign('rpcError', $this->rpcError); $smarty->assign('invalidInstallMethod', $this->invalidInstallMethod); $smarty->assign('error', $this->errorMessage); - return($smarty->fetch(get_template_path('goto/Config/failed.tpl', TRUE))); - } - - // Do we represent a valid account - if (!$this->is_account){ - $str = "\"\" ". - msgPool::noValidExtension("GOsa").""; - return($str); + return($smarty->fetch(get_template_path('failed.tpl', TRUE))); } // Collect item container list to be able to render the fake-base selector @@ -375,13 +365,13 @@ class ConfigManagement extends management if (session::global_is_set(get_class($this)."_filter")){ $filter= session::global_get(get_class($this)."_filter"); } else { - $filter = new filter(get_template_path("goto/Config/DeviceConfig-filter.xml", true)); + $filter = new filter(get_template_path("DeviceConfig-filter.xml", true)); $filter->setObjectStorage($this->storagePoints); } $this->setFilter($filter); // Load service xml file and fill in placeholders - $contents =file_get_contents(get_template_path("goto/Config/DeviceConfig-list.xml", true)); + $contents =file_get_contents(get_template_path("DeviceConfig-list.xml", true)); // Build up device-list configuration $types =""; -- 2.30.2