Hierarchical Option Handling in Exposed Filters Not Functioning Correctly

Created on 30 August 2024, 3 months ago

Problem/Motivation

The Active Filters module is not correctly handling hierarchical options in exposed filters. The module fails to apply hierarchical logic and results in issues such as incorrect label retrieval and TypeErrors when hierarchical settings are involved.

Steps to reproduce

  1. Create an exposed filter with hierarchical options enabled.
  2. Apply the filter in a view and provide a value that falls within the hierarchy.
  3. Observe the behavior where hierarchical options are not processed correctly.

Expected Behavior

When hierarchical options are enabled, the module should:

  • Correctly recognize and process hierarchical settings.
  • Retrieve and display labels according to the hierarchy structure.

Proposed resolution

As a workaround, I modified the module code to manually check for hierarchical settings and process them accordingly. Here’s a brief overview of the changes made:

  • Added logic to check for hierarchical settings in the exposed filters.
  • Used a helper method to retrieve labels from hierarchical structures.
πŸ› Bug report
Status

Needs review

Version

1.0

Component

Code

Created by

πŸ‡±πŸ‡§Lebanon ewehbe

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

Merge Requests

Comments & Activities

  • Issue created by @ewehbe
  • Pipeline finished with Failed
    3 months ago
    Total: 285s
    #269083
  • Status changed to Needs review 3 months ago
  • πŸ‡±πŸ‡§Lebanon ewehbe
  • Pipeline finished with Failed
    3 months ago
    Total: 294s
    #269102
  • Pipeline finished with Failed
    3 months ago
    Total: 399s
    #269112
  • Pipeline finished with Failed
    3 months ago
    Total: 282s
    #269129
  • Pipeline finished with Failed
    3 months ago
    Total: 282s
    #269145
  • Pipeline finished with Failed
    3 months ago
    Total: 282s
    #269157
  • Pipeline finished with Failed
    3 months ago
    Total: 343s
    #269175
  • Pipeline finished with Success
    3 months ago
    Total: 370s
    #269180
Production build 0.71.5 2024