I have a condition that I'm always adding on some of the models on the init. It's a authorization condition. When I add a grid with a model that has this condition, and I add a quick search I get unexpected behavior. Both conditions are there, the one that I've added and the one generated by the quick search, but they are connected with "OR" so nothing works because of it.
I think the conditions should be linked together like this:
select * from my_model
where
(condition_added_with_addCondition1) AND (condition_added_with_addCondition2)
AND (condition_from_quicksearch1 or condition_from_quicksearch2)
In my example I have used addCondition twice and added two seach boxes using addQuickSearch.