From 155ad2423b2afd25819b52015443dee28ee770c5 Mon Sep 17 00:00:00 2001 From: hickert Date: Wed, 18 May 2011 12:39:16 +0000 Subject: [PATCH] Updated config mangement, enabled remove of templates git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@20860 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../class_newConfigManagement.inc | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/gosa-plugins/goto-ng/admin/newConfigManagement/class_newConfigManagement.inc b/gosa-plugins/goto-ng/admin/newConfigManagement/class_newConfigManagement.inc index 31f3df8f0..eca4fbeb8 100644 --- a/gosa-plugins/goto-ng/admin/newConfigManagement/class_newConfigManagement.inc +++ b/gosa-plugins/goto-ng/admin/newConfigManagement/class_newConfigManagement.inc @@ -535,6 +535,18 @@ class newConfigManagement extends plugin $this->dataModel->removeItem($item['path']); } + }elseif($item['type'] == 'Template'){ + + // Remove Template + $rpc = $this->config->getRpcHandle(); + $rpc->installRemoveTemplate($item['name']); + if(!$rpc->success()){ + msg_dialog::display(_("Error"), sprintf(_("Failed to remove the template: %s. Error was: %s"), + $release, $rpc->get_error()),ERROR_DIALOG); + return(NULL); + }else{ + $this->dataModel->removeItem($item['path']); + } }else{ trigger_error($item['type']." - are not handled yet!"); } -- 2.30.2