Actions
Feature proposal #6231
openimprove multi-select search query
Start date:
30 September 2016
Due date:
% Done:
0%
Estimated time:
Description
When searching a mult-select (or multi-checkbox) field it adds each value selected as a LIKE usage to the query. This results in usage like the below.
AND (((ue.`cb_checkboxmultiple` LIKE '%Value 1%') OR (ue.`cb_checkboxmultiple` LIKE '%Value 4%') OR (ue.`cb_checkboxmultiple` LIKE '%Value 8%')))
The problem with this is if 1 value contains the value of another you end up getting incorrect results. For example I search Value 1 it will also match Value 11, Value 111, etc.. This should convert the |*| and do an IN usage instead with a single AND.
Files
Updated by krileon over 8 years ago
Updated by krileon over 8 years ago
- Status changed from Assigned to Feedback
- Assignee deleted (
krileon)
Actions