Skip to content

Commit 7562bdf

Browse files
committed
Fixed: FS#493 - filter does not jump to page 1 of 1
1 parent 41949ac commit 7562bdf

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

interface/lib/classes/listform.inc.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,9 @@ public function getSearchSQL($sql_where = '')
135135
//*TODO: comment = hat sich die suche ge�ndert
136136
if(isset($_REQUEST[$search_prefix.$field]) && isset($_SESSION['search'][$list_name][$search_prefix.$field]) && $_REQUEST[$search_prefix.$field] != $_SESSION['search'][$list_name][$search_prefix.$field]){
137137
$this->searchChanged = 1;
138+
139+
//* Jump back to page 1 of the list when search has changed.
140+
$_SESSION['search'][$list_name]['page'] = 0;
138141
}
139142

140143
//* Store field in session

0 commit comments

Comments
 (0)