From 2c52b6ca906b7703b24f5990e9ed1e2036ecc5cd Mon Sep 17 00:00:00 2001 From: hickert Date: Wed, 10 Mar 2010 12:12:13 +0000 Subject: [PATCH] Fixed handling of filters git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@16378 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-core/include/class_management.inc | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/gosa-core/include/class_management.inc b/gosa-core/include/class_management.inc index 681d8381b..2f959cea4 100644 --- a/gosa-core/include/class_management.inc +++ b/gosa-core/include/class_management.inc @@ -119,6 +119,8 @@ class management $this->registerAction("saveSnapshot","saveSnapshot"); $this->registerAction("restoreSnapshot","restoreSnapshot"); $this->registerAction("cancelSnapshot","closeDialogs"); + + $this->registerAction("config-filter","editFilter"); } /*! \brief Execute this plugin @@ -178,16 +180,10 @@ class management $this->snapHandler->setSnapshotBases($bases); } - // Add a dummy filter editing button. - if(userFilter::userFilteringAvailable()){ - $dummy = ""; - $this->registerAction("editFilter", "editFilter"); - - print_a(userFilter::getFilter()); - } + print_a(userFilter::getFilter()); // Display list - return($dummy.$this->renderList()); + return($this->renderList()); } function editFilter() @@ -379,7 +375,6 @@ class management if(isset($_POST['edit_cancel'])) $action['action'] = "cancel"; if(isset($_POST['delete_confirmed'])) $action['action'] = "removeConfirmed"; if(isset($_POST['delete_cancel'])) $action['action'] = "cancelDelete"; - if(isset($_POST['editFilter'])) $action['action'] = "editFilter"; if(isset($_POST['saveFilter'])) $action['action'] = "save"; if(isset($_POST['cancelFilter'])) $action['action'] = "cancel"; -- 2.30.2