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

flexigrid/bootstrap theme -> WHERE clause AND (search term_n OR search term_n+1...etc.), not OR #414

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Pimnr47
Copy link

@Pimnr47 Pimnr47 commented Jul 9, 2017

Modification of set_ajax_list_queries function in grocery_CRUD_Model_Driver to ensure that the WHERE clause set in the controller is taken as an AND condition, in combination with the query terms flexigrid/bootstrap theme sends as ajax request.

It is to fix the unexpected behaviour that, when you set the where clause in the controller (for example to only show records for a specific user) and enter some search terms in the flexigrid/bootstrap theme table, records are shown outside of the WHERE clause.

I believe this modification results is the behaviour that is more expected of grocery crud.

Modification of set_ajax_list_queries function in grocery_CRUD_Model_Driver to ensure that the WHERE clause set in the controller is taken as an AND condition, in combination with the query terms flexigrid/bootstrap theme sends as ajax request.

It is to fix the unexpected behaviour that, when you set the where clause in the controller (for example to only show records for a specific user) and enter some search terms in the flexigrid/bootstrap theme table, records are shown outside of the WHERE clause.

I believe this modification results is the behaviour that is more expected of grocery crud.
@Pimnr47 Pimnr47 changed the title set_ajax_list_queries AND where flexigrid/bootstrap theme -> WHERE clause AND (search term_n OR search term_n+1...etc.), not OR Jul 9, 2017
@mckaygerhard
Copy link

code is outdated but this problem is happened in bootstrap theme v3, yes! good solution but still late! :<

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

Successfully merging this pull request may close these issues.

2 participants