From: hickert Date: Wed, 18 May 2011 12:39:16 +0000 (+0000) Subject: Updated config mangement, enabled remove of templates X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=155ad2423b2afd25819b52015443dee28ee770c5;p=gosa.git Updated config mangement, enabled remove of templates git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@20860 594d385d-05f5-0310-b6e9-bd551577e9d8 --- 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!"); }