Skip to content

Commit cef90d2

Browse files
committed
update in listform
1 parent 5c12280 commit cef90d2

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

interface/lib/classes/listform.inc.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,8 @@ function getSearchSQL($sql_where = "") {
156156

157157
foreach($this->listDef["item"] as $i) {
158158
$field = $i["field"];
159-
if($_REQUEST[$search_prefix.$field] != '') $sql_where .= " $field ".$i["op"]." '".$i["prefix"].$_REQUEST[$search_prefix.$field].$i["suffix"]."' and";
159+
//if($_REQUEST[$search_prefix.$field] != '') $sql_where .= " $field ".$i["op"]." '".$i["prefix"].$_REQUEST[$search_prefix.$field].$i["suffix"]."' and";
160+
if($_SESSION["search"][$list_name][$search_prefix.$field] != '') $sql_where .= " $field ".$i["op"]." '".$i["prefix"].$_SESSION["search"][$list_name][$search_prefix.$field].$i["suffix"]."' and";
160161
}
161162

162163
if($sql_where != '') {
@@ -203,7 +204,7 @@ function getPagingSQL($sql_where = "1") {
203204

204205

205206
if($_SESSION["search"][$list_name]["page"] > 0) $vars["show_page_back"] = 1;
206-
if($_SESSION["search"][$list_name]["page"] <= $seiten - 1) $vars["show_page_next"] = 1;
207+
if($_SESSION["search"][$list_name]["page"] <= $vars["pages"] - 1) $vars["show_page_next"] = 1;
207208

208209
$this->pagingValues = $vars;
209210
$this->pagingHTML = $this->getPagingHTML($vars);

0 commit comments

Comments
 (0)