-
Bug
-
Resolution: Duplicate
-
Neutral
-
None
-
6.2.16
-
None
-
None
Steps to reproduce
1. use attached tours.yaml as hotfix for /tours/app/tours.yaml resource
2. open Tours app and select Featured option in comboBox filter
Expected results
Only tours with isFeatured flag are shown in grid
Actual results
Nothing is shown
Workaround
use custom ColumnDefinition class (see Resource app for example) or use enumDatasource with custom enumeration class
Development notes
there are two places where it can be fixed in ui codebase.
option 1) JcrQueryBuilder#withPropertyFilter:
final String value = (filterEntryValue instanceof Node) ? ((Node) filterEntryValue).getIdentifier() : (filterEntryValue instanceof Option) ? ((Option) filterEntryValue).getValue() : filterEntryValue.toString().toLowerCase();
or (cleaner) option 2) provide #toString impl in info.magnolia.ui.datasource.optionlist.Option:
@Override public String toString() { return getValue(); }
Acceptance criteria
- duplicates
-
MGNLUI-6364 Column Filter: comboBoxField with optionListDatasource not working as filter
- Closed