Code

Reset page num, if search filter has changed
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 30 Oct 2006 06:48:17 +0000 (06:48 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 30 Oct 2006 06:48:17 +0000 (06:48 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@4957 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/gofax/faxreports/class_faxreport.inc

index 81a7dfddd29e888f987ed85d20e1f3c8b17d7835..9d5de84cb23531aacb0f0a43e01b3560cc22f917 100644 (file)
@@ -444,8 +444,14 @@ class faxreport extends plugin
     foreach( array("year", "month", "search_for", "search_base") as $type){
       if (isset($_POST[$type])){
         $faxreportfilter[$type]= $_POST[$type];
+
+        /* reset start page, if filter has changed */ 
+        if(!isset($_GET['start'])){
+          $this->start = 0;
+        }
       }
       $this->$type= $faxreportfilter[$type];
+   
     }
     foreach($this->attributes_SO as $name){
       $faxreportfilter[$name] = $this->$name;