Doesn't seem to do the substitution.

Created on 19 June 2018, over 6 years ago
Updated 19 March 2023, almost 2 years ago

I had high hopes for this module fixing my issue where i am trying to filter out users that have a related user field = to the base uid of the query.

basically, a registration has a uid and an event, team has an event, team has a captain and co-captain (also uids), i want to filter out users that are captains and co-captains of teams for selected events.

I added all the relationships, added a uid field, added related filters for captain/co-captain and i see that i can set a uid token for those filters, this gives me a where clause like this:

WHERE (( (users.status <> '0') AND (field_reg_user_users__field_data_field_reg_event.field_reg_event_nid IN ('182971')) )AND( (users_field_data_field_team_captain.uid = '***!uid***') OR (users_field_data_field_team_cocaptain.uid = '***!uid***') ))

which i think needs to have the '***!uid***' replaced by users.uid, but it doesnt happen.

if i do run this query directly in mysql doing the replacement of the token with users.uid, i do get the desired result.

πŸ› Bug report
Status

Postponed: needs info

Version

1.0

Component

Code

Created by

πŸ‡¨πŸ‡¦Canada liquidcms

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡ΊπŸ‡ΈUnited States jay.dansand Appleton, WI, USA

    Hello! Sorry for the delay in responding; for some reason I didn't get a notification that this issue was reopened 5 years after it was closed. :)

    I'd need more information about your View's setup to understand if this is working as designed or not. The module is very basic, and will replace certain tokens with the value from another exposed filter or contextual argument on the same View. Note that it will not pluck values out of arbitrary fields on the View; just exposed filters and contextual arguments. So, if "nid" is not an existing exposed filter's machine name, it won't be substituted.

Production build 0.71.5 2024