Code

Added filter update
authorcajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 27 Oct 2009 10:24:53 +0000 (10:24 +0000)
committercajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 27 Oct 2009 10:24:53 +0000 (10:24 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@14650 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/include/class_management.inc

index f4375e8b6712d6374e026d6be57a797b66d3c49c..00629634d68a977af09248dff77c905c308f6a18 100644 (file)
@@ -79,6 +79,15 @@ class management
       return($this->getHeader().$ret);
     }
 
+    // Update filter
+    if ($this->filter) {
+      $this->filter->update();
+      session::set('autocomplete', $this->filter);
+      if (!$this->filter->isValid()){
+        msg_dialog::display(_("Filter error"), _("The filter is incomplete!"), ERROR_DIALOG);
+      }
+    }
+
     // Handle actions (POSTs and GETs)
     $str = $this->handleActions($this->detectPostActions());
     if($str) return($this->getHeader().$str);