Before _workflow_write_history() is called $node->workflow_stamp needs set so that a timestamp is stored along with the message and also so notices are not thrown like 'notice: Undefined property: stdClass::$workflow_stamp'.
Attached is a patch to fix where this is missing in hook_nodeapi's delete. It also contains whitespace cleanup.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | workflow_stamp.patch | 673 bytes | cyu |
| workflow_stamp.patch | 2.81 KB | cyu |
Comments
Comment #1
cyu commentedHere a patch without the whitespace cleanup, showing that it is just 1 line needing added, for HEAD, since it also needs fixed there.
Comment #2
claudiu.cristea+1. I'm getting this PHP notice using drush to mass delte nodes. The patch fixes this... Why is not commited yet?
Comment #3
jvandyk commentedCommitted. Will appear in 6.x-1.5.