I have a rule that updates fields in referenced nodes when a node is deleted, but I need to prevent that rule from firing when the node's workflow state is "canceled." The workflow state appears to get lost in the delete process.

A new rule event (Content is going to be deleted) would be helpful, and is being discussed (http://drupal.org/node/287063), but another solution would involve caching workflow state information in the same manner as titles, fields, etc. when node_delete is called.

I'm using 6.x, but I imagine this same problem would occur on 7.x. I'd be happy to back-port a fix.

Comments

johnv’s picture

Component: Code » Workflow Rules
johnv’s picture

Component: Workflow Rules » Rules
Issue summary: View changes
johnv’s picture

Version: 6.x-1.x-dev » 7.x-2.x-dev

Moving all remaining D6 issues to D7.

johnv’s picture

Version: 7.x-2.x-dev » 6.x-1.x-dev
Status: Active » Closed (won't fix)

Have you found an alternative for this?
In D7, we have moved to true Fields and Entities, leveraging lots of possibilities from Entity, Rules, etc.
I'd like to close this as a "won't fix", since the difference are too big.

Feel free to open a new request for a D7-version, once you've all the possiblities.