Closed (fixed)
Project:
Node Ownership
Version:
8.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Reporter:
Created:
10 May 2016 at 06:18 UTC
Updated:
11 Aug 2020 at 12:14 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
vdsh commentedI was thinking of using rules to do so. What do you think?
We can trigger events after each new claim / claim accepted / claim declined, and use Rules to send the email. Possibly, we can also add actions (eg: auto-accept or auto-decline a claim)
Comment #3
vdsh commentedIt is actually working out of the box with Rules to send email notification after a new claim request has been made, or it has been approved or declined. See examples with status message or email sent. You can also access the claim / linked node / claiming user properties from rules, it's really powerful.
For Accept / Decline, the reaction is actually "when the claim is updated and its status is Accepted / Declined", but I think it's acceptable as you probably wouldn't edit a claim after it is accepted / declined without changing the status
Note: you can also auto-accept or decline by changing the status with rules, but the cache is then not properly reapplied, I'll see if we need to do a custom rules action.
In short, I think we can set this ticket as "Fixed" without having to do anything
Comment #4
vdsh commentedYou can actually auto-accept if using rules, see configuration attached. I was missing the fact that you needed to set the node's uid to the one of the claim, which automatically resaves the node and update the cache.