I have a multi select field named company title. In the company title field, I have Director, Company Rep, Admin. This is a multi select field. Each contact might be the Director and the Company Rep.
When it comes to reporting, you can select either equals or not equals. This would work with a normal select field, but not with multi select fields. If I want a report show all my Company Reps, it only shows the contacts that have only Company Rep selected. If I have a contact that is both a Director and a Company Rep, that contact is not included in my report.
If you can change the pull down for multi select fields to equal, contains, and not equipment, that would be very helpful.
Correct a bug in the function unencodeMultienum (which is located in: include/utils.php)
Since I am not sure if this function is used elsewhere successfully I created a new one and included it just before the class definition in modules/AOR_Reports/AOR_Report.php
(The bug is due to the fact that the original funtion trims two characters on the right hand side of the string instead of one)
For better readability I also separated the trimming on the left and the right into two statements.
Call MyOwn_unencodeMultienum instead of unencodeMultienum
(there is only one occurrence in a line that looks like:
Now if you select one or more options in the multiselect field the report will return all those records with at least one of the options.
This is because they are grouped with OR
The code is written in such way that, if you want to group them with AND you have to chose Not Equal (I don’t know why they did it this way)
By the way there is a bug because if you chose “Not Equal To” it is saved as “Equal To”!! Thanks to this bug you can select those who have two or more values!
Of course you will continue to see in the dropdown “Not Equal To” and “Equal To” but at least you get the functionality!
I had the same problem and this workaround solve my problem. There are a lot of issues related with this problem. Does anyone already share this workaround on github? Could be helpful to solve the problem.
we have the same problem here. We are not able to select the option “contains” in a multi select field in a report. The search condition is very complicated to use, when we want to search different values in this field.
It is possible to fix this problem? Exists a workarround without any code changes in the system?