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
{{ message }}
Repository navigation
Approve only has same behaviour as "Approve and publish" #120
When editing a page (in this case a homepage single) the button for "Approve and publish" and "Approve only" seems to do the exact same thing (making the draft published).
Hitting "Approve only" should approve the submission and apply the draft, but it shouldn't make the entry live and publicly available - ie, the entry won't be enabled.
What are you expecting Approve to do? Approving a submission applies the draft onto an entry, essentially deleting the draft by publishing it.
Yep, so how you've described is how it works. its a little weird with Craft's drafts, but typically for Workflow, you're always dealing with drafts. An editor creates a new draft, submits that - either gets denied or gets approved. If denied, nothing happens, if approved, the draft's content is applied to the original entry.
This just confused us as well so I'm posting to make sure I'm on the correct track.
I'm working with an entry that is already published (enabled and has a post date in the past)
I've created a new draft to update the existing entry and submitted that draft in to workflow (I now have a draftId as well as a submission tracking this)
When I click "Approve and publish" the draft is applied (and the changes are immediately live)
When I click "Approve only" the draft is applied (and the changes are immediately live)
I think the description above implies that this is the expected behavior? If so would you be open to a new PR that keeps the draft as-is but approves it for tracking purposes? Maybe a new drop-down option called "Approve and save draft." Then your three options could be,
To add on to what @markhuot is saying (this is work for our site) we are using a separate plugin that allows us to "schedule" drafts to publish at a specific time. We need to be able to keep the current content live, and have the "approved draft" publish over the content at the time we are specifying for that module.
Just providing some context on this, so you understand why we would want the "approve only" button.
So I'll make the point that a lot's changed in 2 years on the draft-front, and this probably makes sense to have this behaviour updated to just save the draft instead of publishing it when picking "Approve only".
This should be updated for the next release. To get this early, change your verbb/workflow requirement in composer.json to:
"require": {
"verbb/workflow": "dev-craft-3 as 1.7.3",
"...": "..."
}
Activity
engram-design commentedon Jun 17, 2020
Hitting "Approve only" should approve the submission and apply the draft, but it shouldn't make the entry live and publicly available - ie, the entry won't be enabled.
What are you expecting Approve to do? Approving a submission applies the draft onto an entry, essentially deleting the draft by publishing it.
andrewfairlie commentedon Jun 17, 2020
Ah I see. We thought that it was for giving users feedback that there content is right, but not yet live.
For example...
At that point they've been given the thumbs up on the draft, and can continue making changes, but it's not public yet.
But now that you've said that, the actual logic ways perfect sense.
engram-design commentedon Jun 17, 2020
Yep, so how you've described is how it works. its a little weird with Craft's drafts, but typically for Workflow, you're always dealing with drafts. An editor creates a new draft, submits that - either gets denied or gets approved. If denied, nothing happens, if approved, the draft's content is applied to the original entry.
I can see how this is a bit confusing though...
markhuot commentedon May 23, 2022
This just confused us as well so I'm posting to make sure I'm on the correct track.
I think the description above implies that this is the expected behavior? If so would you be open to a new PR that keeps the draft as-is but approves it for tracking purposes? Maybe a new drop-down option called "Approve and save draft." Then your three options could be,
JonGoldmanPlaybill commentedon May 23, 2022
To add on to what @markhuot is saying (this is work for our site) we are using a separate plugin that allows us to "schedule" drafts to publish at a specific time. We need to be able to keep the current content live, and have the "approved draft" publish over the content at the time we are specifying for that module.
Just providing some context on this, so you understand why we would want the "approve only" button.
engram-design commentedon May 23, 2022
So I'll make the point that a lot's changed in 2 years on the draft-front, and this probably makes sense to have this behaviour updated to just save the draft instead of publishing it when picking "Approve only".
This should be updated for the next release. To get this early, change your
verbb/workflowrequirement incomposer.jsonto:Then run
composer update.engram-design commentedon Jul 1, 2022
Fixed in 1.7.4