Skip to content

Commit e032124

Browse files
author
Till Brehm
committed
Fixed: FS#3514 - pagination broken when changing search limit
1 parent 75cc840 commit e032124

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

interface/lib/classes/listform.inc.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -248,6 +248,8 @@ public function getPagingValue($key) {
248248
public function getPagingSQL($sql_where = '1')
249249
{
250250
global $app, $conf;
251+
252+
$old_search_limit = intval($_SESSION['search']['limit']);
251253

252254
//* Add Global Limit from selectbox
253255
if(!empty($_POST['search_limit']) and $app->functions->intval($_POST['search_limit']) > 0){
@@ -272,6 +274,9 @@ public function getPagingSQL($sql_where = '1')
272274

273275
//* set PAGE to worth request variable "PAGE" - ? setze page auf wert der request variablen "page"
274276
if(isset($_REQUEST["page"])) $_SESSION["search"][$list_name]["page"] = $app->functions->intval($_REQUEST["page"]);
277+
278+
//* Set search to changed when search limit has been changed.
279+
if(intval($_SESSION['search']['limit']) != $old_search_limit) $this->searchChanged = 1;
275280

276281
//* PAGE to 0 set, if look for themselves ? page auf 0 setzen, wenn suche sich ge�ndert hat.
277282
if($this->searchChanged == 1) $_SESSION['search'][$list_name]['page'] = 0;

0 commit comments

Comments
 (0)