Filter identifier doesn't work for grouped taxonomy filter

Created on 14 August 2024, 8 months ago

Problem/Motivation

If the filter identifier for a taxonomy grouped filter is changed, the filter won't work.

Steps to reproduce

  1. Create a view
  2. Create a filter using taxonomy terms
  3. Set this filter as grouped
  4. Change the Filter Identifier

Proposed resolution

Include a condition on \Drupal\taxonomy\Plugin\views\filter\TaxonomyIndexTid::validateExposed to get the identifier when the filter is a group.

🐛 Bug report
Status

Active

Version

10.2

Component
Taxonomy 

Last updated about 17 hours ago

  • Maintained by
  • 🇺🇸United States @xjm
  • 🇬🇧United Kingdom @catch
Created by

🇧🇷Brazil mariosr Hortolândia

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

Merge Requests

Comments & Activities

  • Issue created by @mariosr
  • 🇧🇷Brazil mariosr Hortolândia

    Proposed patch with solution.

  • Status changed to Needs review 8 months ago
  • Pipeline finished with Failed
    8 months ago
    #254014
  • Pipeline finished with Failed
    8 months ago
    Total: 220s
    #254020
  • Status changed to Needs work 8 months ago
  • 🇺🇸United States smustgrave

    Thanks for reporting but MR should be against 11.x as current development branch

    Also will need test coverage showing this issue.

  • Status changed to Postponed: needs info 29 days ago
  • 🇺🇸United States dcam

    I'm sorry, but I can't reproduce the issue with the information that is given. Here are the steps I took in an attempt to follow the steps given in the issue summary:

    1. Created a new view. I chose to display taxonomy terms.
    2. Added a new exposed Term ID filter.
    3. Added the filter to a new filter group.
    4. Saved the view.
    5. Visited the view and verified that the Term ID filter works.
    6. Edited the view and changed the Term ID filter's identifier.
    7. Saved the view again.
    8. Visited the view and verified that the Term ID filter works.

    If you can tell me where I went wrong, then I'll be happy to try again.

Production build 0.71.5 2024