In Advanced Search, if you select several values in a MULTIENUM field, the normal behavior is to build a query with OR (exclusive).
For instance: (color = ‘blue’ OR color = ‘red’)
How can I change the behavior to an AND (inclusive) for this specific MULTIEMUM field ?
Query: (color = ‘blue’ AND color = ‘red’)
If possible point to me the part of the code I should play with.
I found how to do it.
Unfortunately it is not UPGRADE SAFE.
Need to be modified every time SuiteCRM is upgraded. (any idea how to make it upgrade safe?)
file: /include/SearchForm/SearchForm2.php
change: $field_value .= ’ or ';
to: $field_value .= ’ and ';