Code

Removed old stuff
[gosa.git] / gosa-core / include / class_management.inc
index aec1431f5efcb9cd5049287b743f9c22b8769bec..a1d935eb3627aee32bede308f3b10e7ac369f7e9 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
@@ -130,6 +132,8 @@ class management
     $vars = array('/^act$/','/^listing/','/^PID$/','/^FILTER_PID$/');
     session::set('LOCK_VARS_TO_USE',$vars);
 
+    pathNavigator::registerPlugin($this);
+
     /* Display the copy & paste dialog, if it is currently open */
     $ret = $this->copyPasteHandler("",array());
     if($ret){
@@ -178,18 +182,13 @@ class management
       $this->snapHandler->setSnapshotBases($bases);
     }
   
-    // Dummy filter editor 
-    $dummy = "<button type='submit' name='editFilter'>!!</button>";
-    $this->registerAction("editFilter", "editFilter");
     // Display list
-    return($dummy.$this->renderList());
+    return($this->renderList());
   }
  
   function editFilter()
   {
-    $headpage = $this->getHeadpage();
-    $this->dialogObject = new filterEditor($this->config,$headpage->categories);
+    $this->dialogObject = new userFilter($this->config,$this->getHeadpage());
   }
  
   function renderList()
@@ -375,7 +374,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";