search

Questionssearch
DIMITRI asked 6 years ago

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'];

1 Answers
Abu Ghufran answered 6 years ago

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.

Your Answer

4 + 6 =

Login with your Social Id:

OR, enter

Attach code here and paste link in question.
Attach screenshot here and paste link in question.



How useful was this discussion?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate it.

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?