Term select exposed filter doesn't load saved value when identifier changed

Created on 14 January 2025, 3 months ago

Problem/Motivation

When a taxonomy term filter is both exposed, using a select input, and has its identifier changed from the default, a saved value is not loaded into the block form when subsequently configuring the block.

Steps to reproduce

  1. Create a view with a block display.
  2. In Block settings, Allow settings, check "Configure filters".
  3. Add an exposed filter and check "Expose operator". Change the filter identifier.
  4. Save the view.
  5. On the Block layout page, add the view block to a region.
  6. Give the filter a value and save the block.
  7. Configure the saved block - the selected filter value will not be loaded. The filter will be set to "All".

Proposed resolution

Correct mistaken use of the filter's machine name in the Block::blockForm() method. The filter's entered identifier should be used, instead.

Remaining tasks

n/a

User interface changes

n/a

API changes

n/a

Data model changes

n/a

πŸ› Bug report
Status

Active

Version

4.1

Component

CTools Views

Created by

πŸ‡ΊπŸ‡ΈUnited States apkwilson

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024