workarea-commerce / workarea

Workarea is an enterprise-grade Ruby on Rails commerce platform
https://www.workarea.com
Other
327 stars 66 forks source link

Use Display Name For Applied Facet Values #449

Closed tubbo closed 4 years ago

tubbo commented 4 years ago

When rendering the applied filters, wrap the given facet value in the facet_value_display_name helper, ensuring that the value rendered is always human readable. This addresses an issue where if the applied filter value is that of a BSON ID, referencing a model somewhere, the BSON ID was rendered in place of the model's name.