-
Notifications
You must be signed in to change notification settings - Fork 641
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Save as new entry applies changes to *current* entry and creates a new one too #10204
Comments
After speaking with Oli I can see that this isn't a bug and is working as intended. I know the publishing/drafts flow has been subject to considerable back and forth and there have been a lot of opinions on the subject. But this feels very counter-intuitive. In the case of saving as a new entry the author's intention wasn't to update the original entry. Should the draft either not be created, or be deleted automatically? I can't think of a case where an author would want the changes they made for the new entry to apply to the original, else they wouldn't be creating a new entry from it. |
Correct, this is working as expected. Your changes are initially made to a provisional draft for the entry, and then you are duplicating that into a new entry, but that doesn’t actually affect the provisional draft.
Maybe, but maybe not. If you know from the start that you are intending to save the changes as a new entry, I suspect most people are duplicating the entry first, then making their changes. I think the main thing we need to do is make it more obvious that you are editing a provisional draft. (Right now it’s only identified by the “– Edited” label within the revision menu button.) Then it won’t be as confusing as to why you are still seeing those edits, or think maybe they were also saved to the main entry. If you don’t want the edits, discarding them is just a button click away. |
Having thought a bit more about this I tend to agree with you @brandonkelly. It would be more logical to create the new entry before editing. But yes, also I think it needs to be made more obvious that it's a draft. |
Changed for Craft 4 (#10467): |
As of Craft 4.3 (released earlier this week), when you press “Save as a new entry” for a provisional draft (an entry with unsaved changes), the unsaved changes will automatically be discarded after the duplicate entry is created. |
When editing an existing entry and clicking "Save as new entry" the changes are saved to the original entry as well as being used to make a new one.
Expected behaviour
The new entry should be created with the updated content but the original entry is left untouched
Steps to reproduce
Additional info
The text was updated successfully, but these errors were encountered: