When using search, setcontent or url query on taxonomy fields or select fields with 'multiple: true', with more than one entry eg ["love", "Music", "Movies"] only the first values in these fields are searchable.
search on "love" would return results, search on "music" or "Movies" returns no content.
This bug occurs at both frontend (set content, search, url query) and backend in filter on content listing.
In selectQuery.php changing
$newLeftExpression = JsonHelper::wrapJsonFunction($translationsAlias . '.value', null, $em->getConnection());
to
$newLeftExpression = $translationsAlias . '.value';
resolves the issue, but causes issues errors elsewhere.
Details
| Question |
Answer |
| Relevant Bolt Version |
legacy / 4.0 / 4.1 / master |
| Install type |
Zip or tar install / Composer install / GitHub checkout |
| BC Break |
yes/no |
| PHP version |
7.2 / 7.3 / 7.4 |
| Web server |
Apache / Nginx / Built-in, version [ version ] |
| For UX/UI issues |
Browser name and version |
Reproduction
If you're filing a bug, please describe how to reproduce it. Include as much
relevant information as possible, such as:
Bug summary
Specifics
Steps to reproduce
Expected result
Actual result
When using search, setcontent or url query on taxonomy fields or select fields with
'multiple: true', with more than one entry eg["love", "Music", "Movies"]only the first values in these fields are searchable.search on "love" would return results, search on "music" or "Movies" returns no content.
This bug occurs at both frontend (set content, search, url query) and backend in filter on content listing.
In
selectQuery.phpchangingto
resolves the issue, but causes issues errors elsewhere.
Details
Reproduction
If you're filing a bug, please describe how to reproduce it. Include as much
relevant information as possible, such as:
Bug summary
Specifics
Steps to reproduce
Expected result
Actual result