Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

$grid->addFilterCheck() is not working #112

Closed
JanMikes opened this issue Mar 21, 2014 · 2 comments
Closed

$grid->addFilterCheck() is not working #112

JanMikes opened this issue Mar 21, 2014 · 2 comments
Labels

Comments

@JanMikes
Copy link
Contributor

When checkbox filter is used, final result is not affected by this filter. If select filter is used instead, everything is working fine. Tested on pure sandbox without any modifications with array data source example

$grid->addFilterCheck("ok", "Ok?"); // Not working
$grid->addFilterSelect("ok", "Ok?", array("" => "", 0 => "NOK", 1 => "OK")); // Working

Urls generated by these filters are exactly the same, but results are differents (as mentioned above, checkbox filter is not affecting result anyhow).

@o5
Copy link
Owner

o5 commented Mar 21, 2014

It's not a bug. Default condition for checkbox filter is IS NOT NULL. You must change it, if you want a different condition. There is an example.

@o5 o5 closed this as completed Mar 21, 2014
@o5 o5 added the INVALID label Mar 21, 2014
@JanMikes
Copy link
Contributor Author

Awesome, thank you for info.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants