%title does not work for "display message to user"
nektir - May 1, 2008 - 22:35
| Project: | Workflow |
| Version: | 6.x-1.x-dev |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | fixed |
Jump to:
Description
I created an advanced action "display message to user" with %title and then applied to workflow state change. The message simply shows %title rather than the actual node title. I'm not sure if this is an issue for Actions or Triggerunlock...

#1
I found that the other variables do not work either for advanced actions with workflow state changes as well... I created an advanced action "send email" and found only %site_name works, the following do not:
%node_type
%title
%node_url
Does anyone else have this problem?
#2
I'm running into the issue when trying to send mail using actions. Did you ever get this figured out?
#3
Nope, still find any solutions... I just used generic terms instead of the tokens
#4
I haven't tried it yet.. but maybe this will help? http://drupal.org/node/195773
#5
I have the same problem: I have tested the same functionality without the workflow module and works fine, but when I enable the workflow module and configure some actions message actions or email actions appear the string %node_url, %node_type, %title %body instead of the variable content.
#6
I have changed the project because the workflow module include the triggerunlock functionalities.
#7
Is this going to be addressed. It seems that sending email is a popular use of workflow.
#8
This is actually a bug in Drupal 6 core trigger module. We should roll a patch for D7 and have it applied to D6 as well.
It was fixed in Drupal 5 actions module (this commit).
#9
Should this be moved to the D7 queue? or D6 queue?
#10
I'm having the same issue. I'm unable to send useful emails because of it. Does anyone have a patch for this?
#11
I have the same problem. Are you saying that triggerunlock will fix it??
#12
No, jvandyk is saying it is a bug in the Drupal 6 core that would need to be addressed.
#13
How do I apply the fix from #8 in my Drupal 6 installation?
#14
subscribing
#15
Are we able to successfully use variables when sending out emails from workflow (as that is a pretty significant chunk of my use case my workflow and drupal)?
Or are we saying that we need to wait for Drupal 7 before it works??
Thanks
#16
I've just submitted a patch for D6 that should fix this issue #339770: system_send_email_action doesn't check context for node. It's pretty much the same as the patch referred to by jvandyk in #8!
#17
The patch is duplicate to #339591: Sending mail and displaying a message in a trigger doesn't honor tokens
#18
lol! beaten to it by a day - nice work though.
#19
Fixed by this: http://drupal.org/node/339591