Problem/Motivation

When you select a facet value, and later that facet value is getting hidden because no results exist for that combination, we need a way to remember that value was initially selected, so it stays selected once it is relevant again.

I added a video to explain the issue, as you see, Red is not remembered.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

StryKaizer created an issue. See original summary.

StryKaizer’s picture

Status: Active » Needs review
FileSize
2.49 KB

This needs thorough review before going in.

Since we need to "emulate" values which are not in the option list, but we want the same form element name, we add hidden form values as text strings.

Doing this, we need to be sure we do not introduce any security issues before committing...

StryKaizer’s picture

FileSize
2.19 KB

Replaced the string in favor of an actual hidden form element

malik.kotob’s picture

Status: Needs review » Reviewed & tested by the community

Tested and worked very well!

StryKaizer’s picture

Status: Reviewed & tested by the community » Needs review
FileSize
2.86 KB

Added check to ensure we only alter views_exposed_forms for views which actually use facets exposed filters.

Status: Needs review » Needs work

The last submitted patch, 5: 3400585-5.patch, failed testing. View results
- codesniffer_fixes.patch Interdiff of automated coding standards fixes only.

  • StryKaizer committed 98be0aae on 3.0.x
    Issue #3400585 by StryKaizer, malik.kotob: Exposed filters: remember non...
StryKaizer’s picture

Status: Needs work » Fixed

Status: Fixed » Closed (fixed)

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