Repository navigation
fix(next): preserve published content when restoring drafts - #19540
Conversation
Backport of payloadcms#18394. On 3.x the restore button lives in packages/next. A draft version of a collection with drafts is now restored as a draft, and the main button reads "Restore as draft", so restoring it no longer unpublishes the live document (payloadcms#18389). The main button also sets the draft flag on every click and Cancel resets it, so a cancelled "Restore as draft" no longer turns a later "Restore this version" into a draft restore.
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
|
🚀 This is included in version v3.94.0 |
Identical to #18394, back-ported for 3.x.