[MGNLEESOLR-35] Can't remove selected facets on search result page Created: 29/Jan/15  Updated: 29/Jan/15  Resolved: 29/Jan/15

Status: Closed
Project: Solr Search Provider
Component/s: None
Affects Version/s: None
Fix Version/s: 2.0

Type: Bug Priority: Major
Reporter: Milan Divilek Assignee: Milan Divilek
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Bug DoR:
[ ]* Steps to reproduce, expected, and actual results filled
[ ]* Affected version filled

 Description   

Problem is caused by closing facet's name into quotes.

In facetSelector template we are closing facet's name into quotes

<button class="button cats" type='submit' name='addFacetFilter' value='${facet}:"${facetField.name}"'>${facetField.name} (${facetField.count})</button><br>

and this cause problem in searchResult template

<span><button class="button cats" type="submit"  name="removeFacetFilter" value="${filter}">${facetLabel}=${filter?split(":")[1]} (x)</button></span>

where value attribute then looks for example like value="text:"magnolia"".

It's unnecessary use quotes for facet name.


Generated at Mon Feb 12 10:59:28 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.