Code

Removed debug output
[gosa.git] / gosa-core / include / class_management.inc
index 60eb713e84fb19439e8a95c32765c2f9b261cd9a..6bdd603ca37cd0519a890868d897bbb648e12251 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
@@ -177,11 +179,17 @@ class management
 
       $this->snapHandler->setSnapshotBases($bases);
     }
-    
+  
     // Display list
     return($this->renderList());
   }
-  
+  function editFilter()
+  {
+    $headpage = $this->getHeadpage();
+    $this->dialogObject = new userFilter($this->config,$headpage->categories);
+  }
   function renderList()
   {
     $this->headpage->update();
@@ -365,6 +373,8 @@ 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['saveFilter'])) $action['action'] = "save";   
+    if(isset($_POST['cancelFilter'])) $action['action'] = "cancel";   
 
     // Detect Snapshot actions
     if(isset($_POST['CreateSnapshot'])) $action['action'] = "saveSnapshot";