Greetings! I am using this construct:
"groupOp":"OR"
but when the query is generated it still contains an AND not an OR.
Example from this https://phpgrid.desk.com/customer/portal/questions/1126469-is-it-possible-to-filter-phpgrid-data-with-more-than-one-field-search-json- post:
"groupOp":"OR",
"rules":[
{"field":"mk_id","op":"ne","data":"102"},
{"field":"mk_id","op":"eq","data":"A"}
Hi,
I tested OR operator and i works as expected in demos/search/search-onload.php
You can try replacing it in demo like:
$sarr = <<< SEARCH_JSON
{
"groupOp":"OR",
"rules":[
{"field":"name","op":"cn","data":"{$v}"},
{"field":"closed","op":"eq","data":"No"}
]
}
SEARCH_JSON;
Let me know if still need help. You might need to send grid code for review at my email: [email protected]