Problem/Motivation

Using BEF filters in combination with remembered input clears the query parameters but not the remembered filter inputs.

Steps to reproduce

Install newest BEF (7.0.0) with core (10.3.2) and create a few that has both BEF enabled and remembered filter inputs.

When clicking the reset button the query parameters are cleared but the remembered inputs remain.

Proposed resolution

Created a patch based on how the core reset (See: ExposedFormPluginBase::rememberForm()) works. This seems to resolve the issue but is untested otherwise.

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

sander wemagine created an issue. See original summary.

smustgrave’s picture

Version: 7.0.0 » 7.0.x-dev
Issue tags: +Needs tests

Fix should be in an MR for tests to run.

Also would be good to get simple test coverage

vermario’s picture

the same happens with 6.0.6 and drupal 10.2.7

sander wemagine’s picture

I don't know how to create a MR, anyone else want to create one or explain how to create one?

sander wemagine’s picture

I created a new patch. The previous patch couldn't apply to the latest 7.x branch anymore. This one does apply again.

smustgrave’s picture

Status: Active » Needs work

Can't seem to get the test right but will try again later.

smustgrave’s picture

Issue tags: +bef-target-7.0.2
smustgrave’s picture

Status: Needs work » Needs review

Finally got the tests working minus random previous minor failure.

smustgrave’s picture

Status: Needs review » Needs work

Think this still needs work as the tests are showing problems.

smustgrave’s picture

Status: Needs work » Fixed

FINALLY figured it out.

  • smustgrave committed 4b55880c on 7.0.x
    Issue #3469712 by sander wemagine: Remembered filters don't reset with...

Status: Fixed » Closed (fixed)

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