Incomplete token replacement in defaults

Created on 17 January 2025, 3 months ago

Steps to reproduce

  • Create a content type that has three user reference fields.
  • Create a view of that content type, with two or three contextual filters (one for each field) with default value set to "User ID from logged in user."
  • Use the contextual or option.

Token replacement seems to work fine for the second (or in the case of three, the second and third) contextual filter, but does not work for the first for some reason. For example, the where clause ends up looking like this:

WHERE (((node__field_committee_reviewer.field_committee_reviewer_target_id = '[current-user:id]')) OR ((node__field_internal_reviewer.field_internal_reviewer_target_id = '804')))

I end up with an empty set of nodes every time (when searching, in this case, for nodes that reference the current user in the committee_reviewer field).

πŸ› Bug report
Status

Active

Version

1.5

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States seattlehimay

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

Comments & Activities

Production build 0.71.5 2024