Hello!
It looks like some problems exist for search. When I using search function (typing keywords in the field) this error occuers:
"undefined searchField in php_dist, next row:"
$fld = $this->escape_string($_REQUEST['searchField']);
var_dump($_REQUEST);
array(8)
{
["grid_id"]=> string(5) "list2"
["_search"]=> string(4) "true"
["nd"]=> string(13) "1506591962755"
["rows"]=> string(2) "20"
["jqgrid_page"]=> string(1) "1"
["sidx"]=> string(8) "id_image"
["sord"]=> string(4) "desc"
["filters"]=> string(123)
"{"groupOp":"AND",
"rules":[
{"field":"IMG_FILE",
"op":"cn",
"data":"00114"},
{"field":"HEADER_TEXT_DOC",
"op":"cn",
"data":"Abu"}
]
}"
}
script works when changing code to:
//$fld = $this->escape_string($_REQUEST['searchField']);
$past = json_decode ($_REQUEST['filters'],true);
$fld = $past['rules'][0]['field'];
+
//$fldata = $this->escape_string($_REQUEST['searchString']); //undefined searchString
$fldata = $past['rules'][0]['data'];
+
// $foper = $this->strip($_REQUEST['searchOper']); // undefined searchOper
$foper = $past['rules'][0]['op'];
I am unable to generate this issue.
If you can generate this issue on live (http://phpgrid.org/demo), please let me know the steps.