emory-libraries / blacklight-catalog

1 stars 2 forks source link

Fix duplicate constraints #1342

Closed abelemlih closed 1 year ago

abelemlih commented 1 year ago

Ticket #1339

Context

The changes to app/helpers/blacklight/render_constraints_helper_behavior.rb in Blacklight v7.33 introduced a new issue where the filter constraints are duplicated in display when f_inclusive is used for a field, as shown below:

image

Solution

To resolve the failing specs tied to this issue, and ensure the search constraints are working properly, I am reverting the filter constraint rendering logic to Blacklight v7.4.2. Once we switch the search constraints to using components, we will be able to remove this override.

Screenshot

Screenshot 2023-03-24 at 3 35 35 PM