Currently, when filtering by a list field (either exposed or through the Views UI when adding a filter), the filter is displayed as a text field.

It'd be much more user friendly to display a select list instead of the text field, containing the option values from the list field.

Comments

nicrodgers created an issue. See original summary.

nicrodgers’s picture

Assigned: nicrodgers » Unassigned
Status: Needs work » Needs review
StatusFileSize
new2.47 KB
drunken monkey’s picture

StatusFileSize
new4.29 KB
new3.36 KB

Thanks a lot for creating this issue and providing a neat way of spotting fields with options lists!
Just a bit of clean-up, and a bit more defensive coding in case other data definitions also use the allowed_values setting (potentially for other purposes).

Please test whether this still works for you, then I can commit it.

nicrodgers’s picture

Great stuff - new patch applies successfully and seems to work just fine.

drunken monkey’s picture

Status: Needs review » Fixed

Good to hear, thanks for reporting back!
Committed.
Thanks again for your contribution!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.