From ac55faf835e8f9d6b2d09aab1f6e3ba38abe4bbd Mon Sep 17 00:00:00 2001 From: hickert Date: Mon, 30 Oct 2006 06:48:17 +0000 Subject: [PATCH] Reset page num, if search filter has changed git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@4957 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/gofax/faxreports/class_faxreport.inc | 6 ++++++ 1 file changed, 6 insertions(+) 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; -- 2.30.2