Repository navigation
Improve duplicate entry - #2513
Merged
Merged
Conversation
Clicking "Copy Story" used to create the copy right away and only then redirect to its edit form. Until it was renamed and moved, the copy was already visible to other users in the original account, site and folder. The button now leads to a form where title, permalink, account, site and folder can be chosen before anything is created. Users can also decide whether members of the original story should be copied or whether the copy starts without members. Members who do not belong to the target account are not copied.
When the permalink slug is left empty and the default slug derived from the entry title is already taken in the selected directory, append the first free number (e.g. "my-title-2") instead of failing validation. The slug placeholder in the entry and duplicate forms shows the resulting slug for the selected directory, so the suffix never comes as a surprise. Validation errors were previously preferred over Friendly ID's UUID suffixes, which could not be predicted in the placeholder. Duplicated entries now use the same scheme instead of appending the entry id.
Duplicating creates a new entry in the account, but entry publishers were allowed to do so even though only account publishers may create entries. Align the two permissions. Entry publishers without account publisher role can no longer copy entries.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.