Make the filters compatible with views relationships

Created on 7 August 2023, 11 months ago
Updated 8 August 2023, 11 months ago

Problem/Motivation

When using the module's Date filters with a node loaded by another entity via relationship, the filter does not work with the error
Column not found: 1054 Unknown column 'node_field_data.created' in 'where clause'

Steps to reproduce

Create a view with a non-node entity (f.e. Taxonomy term or Media) referencing a node. Then try loading the node via a views relationship in a view that's base table is the other entity and try to filter it using the date range filter on the "changed" or "created" fields.

Proposed resolution

Make the filter aware of set table aliases by views when using relationships.

Remaining tasks

Review & merge PR.

User interface changes

None

API changes

None

Data model changes

None

✨ Feature request
Status

Needs review

Version

2.0

Component

Code

Created by

πŸ‡©πŸ‡ͺGermany fisherman90 Dortmund

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

Comments & Activities

Production build 0.69.0 2024