Closed (duplicate)
Project:
Workflow
Version:
6.x-1.1
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
12 Jan 2009 at 20:33 UTC
Updated:
2 Mar 2010 at 18:23 UTC
I have an email action configured to send an email to the author of a node. I wanted to trigger that action when changing from one state to another but the email was not properly set. By looking at the code of the email action (system.module), I noticed that it expects the $node object directly as the $object argument of the do_action() function, when the action type is 'system'.
Attach is a patch that fixes this.
- Drupal 6.8 / PHP Version 5.2.6-0.1~lenny1 / Debian 5.0 (testing)
| Comment | File | Size | Author |
|---|---|---|---|
| workflow.module.patch | 721 bytes | hanoii |
Comments
Comment #1
tnanek commentedWorks well for me, thanks!
Comment #2
rdeboerAnd for me...! Well-spotted hanoii!
Much appreciated.
Comment #3
cyu commentedThis had the unwanted side effect of breaking token replacement on e-mail actions of type system when applied to my install. E-mail body went from...
Node created at localhost:8888/mysite/node/16421
to
Node created at localhost:8888/mysite/node/[nid]
after I applied this patch.
Comment #4
westbywest commentedsubscribing
Comment #5
seanburlington commentedWorks for me
Thanks :-)
Comment #6
jenlamptonWorks for me. I set up a clean install of drupal 6.13 + workflow 6.x-1.1 + this patch + token 6.x-1.x-dev and was unable to reproduce the problem in #3. Is anyone still having problems with this patch?
Jen
Comment #7
ranj.sarraj commentedLove the patch, work like a charm
really appreciate, all the best Haonii
Comment #8
anawillem commentedawesome. worked for me. wonder why this hasn't been fixed in the newest version? are other folks having the same issue? in any case, it fixed it for me. thanks for this - so much.
Comment #9
anawillem commentedStill not fixed in the newest release of workflows module (oct 23rd?) for 6.x (I just implemented it on monday, and it broke this again). Is anyone paying attention to this post?
Comment #10
taoliu commentedThanks a lot! It worked great and fixed my problem that some token variables in emails were not replaced. I am using the newest release of workflow and have not encountered any issue mentioned above.
Comment #11
vitis commentedsub
Comment #12
jvandyk commentedhttp://drupal.org/node/253711