Code

reenabled filter caching
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 16 Mar 2010 08:40:23 +0000 (08:40 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 16 Mar 2010 08:40:23 +0000 (08:40 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@16596 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/plugins/admin/ogroups/objectSelect/class_objectSelect.inc

index 13163d5a74c4eb7fd6c4b9af55111a14530a38e8..6ba1ecb2d975f674bc2165f80fd75654729d3e71 100644 (file)
@@ -39,21 +39,21 @@ class objectSelect extends management
         get_ou("printerRDN"),
         get_ou("phoneRDN"));
 
-#    // Build filter
#   if (session::global_is_set(get_class($this)."_filter")){
-  #    $filter= session::global_get(get_class($this)."_filter");
-   # } else {
+    // Build filter
+    if (session::global_is_set(get_class($this)."_filter")){
+      $filter= session::global_get(get_class($this)."_filter");
+    } else {
       $filter = new filter(get_template_path("selectObject-filter.xml", true, dirname(__FILE__)));
       $filter->setObjectStorage($this->storagePoints);
-    #}
-    $this->setFilter($filter);
+#}
+      $this->setFilter($filter);
 
-    // Build headpage
-    $headpage = new listing(get_template_path("selectObject-list.xml", true, dirname(__FILE__)));
-    $headpage->registerElementFilter("depLabel", "objectSelect::filterDepLabel");
-    $this->registerAction("open","openEntry");
-    $headpage->setFilter($filter);
-    parent::__construct($config, $ui, "object", $headpage);
+      // Build headpage
+      $headpage = new listing(get_template_path("selectObject-list.xml", true, dirname(__FILE__)));
+      $headpage->registerElementFilter("depLabel", "objectSelect::filterDepLabel");
+      $this->registerAction("open","openEntry");
+      $headpage->setFilter($filter);
+      parent::__construct($config, $ui, "object", $headpage);
   }