I have a rule set up that uses the following action:
After updating existing content of type
It's working fine when a node is updated, but I just discovered that this rule also fires when nodes of the specified type are deleted. This makes sense, since changing the status of a node is technically an update, but this is not the desired effect as emails should not be sent when the node is deleted.
I added a small chunk of PHP inside the email generated by the rule to see what the value of $node->status is in this rule, but it is still 1, not 0 as I expected.
How can I use the 'After updating existing content of type
' event, but not have it react when a node of that type is deleted?