Code

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

gosa-plugins/mail/personal/mail/mailAddressSelect/class_mailAddressSelect.inc

index ebd2bac1e0846edaf4375770f6726d09eba43162..65070568a0fb582f7975c27e82f4e88e40be8892 100644 (file)
@@ -33,19 +33,19 @@ class mailAddressSelect extends management
 
     $this->storagePoints = array(get_ou("userRDN"), get_ou('groupRDN'));
 
-#   // 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("selectMailAddress-filter.xml", true, dirname(__FILE__)));
-  $filter->setObjectStorage($this->storagePoints);
-#   }
-  $this->setFilter($filter);
+    // 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("selectMailAddress-filter.xml", true, dirname(__FILE__)));
+      $filter->setObjectStorage($this->storagePoints);
+    }
+    $this->setFilter($filter);
 
-  // Build headpage
-  $headpage = new listing(get_template_path("selectMailAddress-list.xml", true, dirname(__FILE__)));
-  $headpage->setFilter($filter);
-  parent::__construct($config, $ui, "mail", $headpage);
+    // Build headpage
+    $headpage = new listing(get_template_path("selectMailAddress-list.xml", true, dirname(__FILE__)));
+    $headpage->setFilter($filter);
+    parent::__construct($config, $ui, "mail", $headpage);
   }
 
   function save()