You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 worflow approved actions are deleted. This put all old approved submission by this user in pending 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:
tested with multiple entries and submission, that's why the date dont match in screenshots.
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 put NULL in the userId column of table workflow_reviews, seems to work without errors.
Steps to reproduce
Create 3 users, first for the creation of submission and second one for the approbation, and one admin
Create a submission with user one
Approve it with second user
Delete the approver user
Empty trash of deleted users
Check the previously approved submission
Craft CMS version
4.12.7
Plugin version
2.0.12
Multi-site?
Yes
Additional context
This is happening in all environments
The text was updated successfully, but these errors were encountered:
Aku-benj
changed the title
Approved entries appear as pending when approver user is deleted
Approved submissions appear as pending when approver user is deleted
Oct 29, 2024
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 put
NULL
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
The text was updated successfully, but these errors were encountered: