Flagging Tokens not working in Flag Actions

Created on 16 May 2014, over 11 years ago
Updated 19 August 2025, 6 days ago

We setup a flag with flag fields, and enabled on a node. We then set an action to send an email when the node was flagged. The admin screen for creating the action shows flagging:field type tokens available, but they are not replaced when the email is sent. Looking in the action code it appears that flag_actions_flag_flag receives the flagging entity, but does not pass it on to flag_actions_do, because there is no parameter available in flag_actions_do. With this patch I add an optional flagging parameter to flag_actions_do that defaults to "FALSE", then if that parameter is passed in I add it to the context array for token replacement. Seems to fix it for me.

πŸ› Bug report
Status

Closed: outdated

Version

3.0

Component

Actions integration

Created by

πŸ‡ΊπŸ‡ΈUnited States ryan.wyse

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.

Production build 0.71.5 2024