verbb / workflow

A Craft CMS plugin to create a workflow for publishing entries.
Other
140 stars 27 forks source link

Approved entries showing as pending and preview is not working for entries to see the changes #197

Open azad6026 opened 6 months ago

azad6026 commented 6 months ago

Describe the bug

The below issues are happening for existing entries that are frequently edited (like events and resources): First issue: Even though the entry is approved and published , the status of it remains as pending and not approved and it is confusing. Then when we go into the entry again to approve it once more, there is nothing to approve and the entry is in live status.

Second issue: Once clicking on the entries from the workflow dashboard or from the publisher emails to check the entry for changes, it shows up as a revision and the preview button is not available on the page to preview changes. Only option is to revert it to that revision which is not correct. Also in this case, once clicking on the approve and publish button, a 400 error appears and says there is no draft and the entry cannot be approved.

Screen Shot 2023-12-14 at 11 59 50 am

Steps to reproduce

The below issues are happening for existing entries that are frequently edited (like events and resources): First issue: Even though the entry is approved and published , the status of it remains as pending and not approved and it is confusing. Then when we go into the entry again to approve it once more, there is nothing to approve and the entry is in live status.

Second issue: Once clicking on the entries from the workflow dashboard or from the publisher emails to check the entry for changes, it shows up as a revision and the preview button is not available on the page to preview changes. Only option is to revert it to that revision which is not correct. Also in this case, once clicking on the approve and publish button, a 400 error appears and says there is no draft and the entry cannot be approved.

Screen Shot 2023-12-14 at 11 59 50 am

Craft CMS version

4.5.11.1

Plugin version

2.0.7

Multi-site?

No

Additional context

This is happening in production environment.

engram-design commented 6 months ago

I can't seem to replicate either issue at the moment. I'm not sure how the approved submission isn't being marked as such, as that's pretty intrinsic to the approve behaviour to set that setting. Unless it's maybe something else you're looking at?

I will note that if you're editing an existing entry by creating a submission on that, it'll create a draft, which once approved, it'll be deleted. Just in case that's part of the confusion.

If you're able to, it might be worth sending through a screen recording detailing the journey from start to finish. You're welcome to send through to support@verbb.io if that's easier.

azad6026 commented 6 months ago

Thank you for coming back to this. I have asked the client to send through a recording and will let you know once got them and will share it. Cheers.