Code

Fixed handling of filters
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 10 Mar 2010 12:12:13 +0000 (12:12 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 10 Mar 2010 12:12:13 +0000 (12:12 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@16378 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/include/class_management.inc

index 681d8381b17bf8002a3240eccdc1768ddaa17573..2f959cea498e43a475b2d537427bbb737f728898 100644 (file)
@@ -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 = "<button type='submit' name='editFilter'>!!</button>";
-      $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";