Open Aku-benj opened 1 month ago
Yep, probably an oversight on my part that was CASCADE
reviews when the owner user is deleted.
Fixed for the next release. To get this early, run composer require verbb/workflow:"dev-craft-4 as 2.0.12"
.
I'll also investigate hooking into the user content transfer process to properly handle this as you'd expect when deleting a user.
Thanks a lot for the fast reply and the proposed fix. I will only have time to test it next week.
Describe the bug
When a user who has approved a worflow submission is deleted from the system, even if the
transfert data to another user
is used, the worflowapproved actions
are deleted. This put all old approved submission by this user inpending
state but the entries are still published.When the approver user is in the
trash
it looks like : And then once cleaned the approved action is simply deleted:What's your proposed solution?
Find a way to reassign the
workflow_reviews
(actions) to the selected user if choosed during the user deletion process. Or simple putNULL
in the userId column of tableworkflow_reviews
, seems to work without errors.Steps to reproduce
Craft CMS version
4.12.7
Plugin version
2.0.12
Multi-site?
Yes
Additional context
This is happening in all environments