From 426e964be09b919f1acca7d7c3485754dcd64955 Mon Sep 17 00:00:00 2001 From: hickert Date: Mon, 7 Nov 2011 09:52:40 +0000 Subject: [PATCH] Fixed removal of template and profile entries. git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.7@21043 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-plugins/fai/admin/fai/class_faiProfile.inc | 5 +++-- gosa-plugins/fai/admin/fai/class_faiTemplate.inc | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/gosa-plugins/fai/admin/fai/class_faiProfile.inc b/gosa-plugins/fai/admin/fai/class_faiProfile.inc index 2f7d34773..9608e6a2f 100644 --- a/gosa-plugins/fai/admin/fai/class_faiProfile.inc +++ b/gosa-plugins/fai/admin/fai/class_faiProfile.inc @@ -99,6 +99,7 @@ class faiProfile extends plugin // Prepare lists $this->classList = new sortableListing(array(),array(), TRUE); $this->classList->setDeleteable(true); + $this->classList->setInstantDelete(false); $this->classList->setEditable(false); $this->classList->setWidth("100%"); $this->classList->setHeight("200px"); @@ -141,10 +142,10 @@ class faiProfile extends plugin $sort_once = false; if(!preg_match("/freeze/",$this->FAIstate)){ - if(isset($_POST['AddClass']) && $this->acl_is_writeable("FAIclass")){ + if(isset($_POST['AddClass']) && $this->acl_is_writeable("FAIclass")){ $this->classSelect = new classSelect($this->config, get_userinfo()); $this->dialog =true; - } + } /* Save Dialog */ diff --git a/gosa-plugins/fai/admin/fai/class_faiTemplate.inc b/gosa-plugins/fai/admin/fai/class_faiTemplate.inc index 4acd6041a..47313ac42 100644 --- a/gosa-plugins/fai/admin/fai/class_faiTemplate.inc +++ b/gosa-plugins/fai/admin/fai/class_faiTemplate.inc @@ -69,6 +69,7 @@ class faiTemplate extends plugin // Prepare lists $this->templateList = new sortableListing(); + $this->templateList->setInstantDelete(false); $this->templateList->setDeleteable(true); $this->templateList->setEditable(true); $this->templateList->setWidth("100%"); @@ -76,7 +77,6 @@ class faiTemplate extends plugin $this->templateList->setColspecs(array('*','18px')); $this->templateList->setHeader(array(_("Name"),"")); $this->templateList->setDefaultSortColumn(0); - } -- 2.30.2