Feature "Remember the last selection" for views exposed filters doesn't work anymore

Created on 26 January 2022, almost 3 years ago
Updated 25 July 2024, 4 months ago

Problem/Motivation

The feature "Remember the last selection" for views exposed filters doesn't seem to work anymore.

This regressed in #2473875: Convert uses of $_SESSION to symfony session retrieved from the request β†’ when we updated our session handling. (See #9 for the research from git blame).

Steps to reproduce

  1. Create a views page and add one or more exposed filters. Check the option "Remember the last selection" and select user roles "anonymous" and "authenticated"
  2. Under Advanced / Use Ajax select "Yes"
  3. Under Advanced / Caching select "none"
  4. Go to the created views page and make a selection on the exposed filter
  5. Reload the page
  6. The previous selection isn't remembered, the view is shown in default state

This used to work in previous drupal versions.

Proposed resolution

The solution is to update the code to use the Symfony session instead of $_SESSION. (See #15.)

πŸ› Bug report
Status

Fixed

Version

9.5

Component
ViewsΒ  β†’

Last updated about 3 hours ago

Created by

πŸ‡¨πŸ‡­Switzerland neverstopscrolling Lucerne

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024