Viewfield tokens should be cleared and args filtered to prevent errors.

Created on 27 February 2025, about 2 months ago

Problem/Motivation

Discovered this as we borrow the ViewfieldContextualFilters helper in graphql that the token replacement isn't clearing the values which can lead to invalid values when combined with the token_or module. Also, when tokens are cleared, the arguments should be filtered with array_filter.

Steps to reproduce

Use a token for a field value in the viewfield arguments section. If the value for the field isn't set, the token persists as the token string.

Proposed resolution

Use our own token processing similar to the formatter and apply the same array_filter to the results there.

πŸ› Bug report
Status

Active

Version

3.1

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States apmsooner

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