From: hickert Date: Mon, 30 Oct 2006 06:48:17 +0000 (+0000) Subject: Reset page num, if search filter has changed X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=ac55faf835e8f9d6b2d09aab1f6e3ba38abe4bbd;p=gosa.git Reset page num, if search filter has changed git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@4957 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/plugins/gofax/faxreports/class_faxreport.inc b/plugins/gofax/faxreports/class_faxreport.inc index 81a7dfddd..9d5de84cb 100644 --- a/plugins/gofax/faxreports/class_faxreport.inc +++ b/plugins/gofax/faxreports/class_faxreport.inc @@ -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;