Code

Oups ;-)
authorcajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 24 Aug 2009 12:45:40 +0000 (12:45 +0000)
committercajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 24 Aug 2009 12:45:40 +0000 (12:45 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@14117 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/plugins/admin/users/class_userManagement.inc

index 7d4ad7f24abc66d3f2b77d0080c98fa353e6905f..1d128a6bba5ac5904a836e89604716d42de91643 100644 (file)
@@ -988,40 +988,40 @@ class userManagement extends plugin
     $this->DivListUsers->setEntries($this->list);
 
     # FILTER Test #################################################
-    # Build filter
-    if (!$this->filter) {
-      $this->filter = new filter(get_template_path("user-filter.xml", true));
-      $this->filter->setObjectStorage(get_people_ou());
-    }
-    $this->filter->update();
-    session::set('autocomplete', $this->filter);
-    if (!$this->filter->isValid()){
-      msg_dialog::display(_("Filter error"), _("The filter is uncomplete!"), ERROR_DIALOG);
-    }
-
-    # Build headpage
-    if (!$this->headpage){
-      $this->headpage = new listing(get_template_path("user-list.xml", true));
-      $this->headpage->registerElementFilter("accountProperties", "userManagement::filterProperties");
-      $this->headpage->registerElementFilter("lockLabel", "userManagement::filterLockLabel");
-      $this->headpage->registerElementFilter("lockImage", "userManagement::filterLockImage");
-      $this->headpage->setCopyPasteHandler($this->CopyPasteHandler);
-      $this->SnapshotHandler->setSnapshotBases($this->get_used_snapshot_bases());
-      $this->headpage->setSnapshotHandler($this->SnapshotHandler);
-      $this->headpage->setFilter($this->filter);
-    }
-
-    # Needs to be called before update!
-    $action= $this->headpage->getAction();
-    if ($action['action'] != '') {
-      echo "List detected action:";
-      print_a($action);
-    }
-
-    # Refresh for filter
-    $this->headpage->update();
-    
-    return($this->headpage->render());
+    ## Build filter
+    #if (!$this->filter) {
+    #  $this->filter = new filter(get_template_path("user-filter.xml", true));
+    #  $this->filter->setObjectStorage(get_people_ou());
+    #}
+    #$this->filter->update();
+    #session::set('autocomplete', $this->filter);
+    #if (!$this->filter->isValid()){
+    #  msg_dialog::display(_("Filter error"), _("The filter is uncomplete!"), ERROR_DIALOG);
+    #}
+
+    ## Build headpage
+    #if (!$this->headpage){
+    #  $this->headpage = new listing(get_template_path("user-list.xml", true));
+    #  $this->headpage->registerElementFilter("accountProperties", "userManagement::filterProperties");
+    #  $this->headpage->registerElementFilter("lockLabel", "userManagement::filterLockLabel");
+    #  $this->headpage->registerElementFilter("lockImage", "userManagement::filterLockImage");
+    #  $this->headpage->setCopyPasteHandler($this->CopyPasteHandler);
+    #  $this->SnapshotHandler->setSnapshotBases($this->get_used_snapshot_bases());
+    #  $this->headpage->setSnapshotHandler($this->SnapshotHandler);
+    #  $this->headpage->setFilter($this->filter);
+    #}
+
+    ## Needs to be called before update!
+    #$action= $this->headpage->getAction();
+    #if ($action['action'] != '') {
+    #  echo "List detected action:";
+    #  print_a($action);
+    #}
+
+    ## Refresh for filter
+    #$this->headpage->update();
+    #
+    #return($this->headpage->render());
     ################################################### FILTER Test
 
     return($this->DivListUsers->Draw());