Skip to content
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

prevent creation of unnecessary provisional draft after full save #15945

Merged

Conversation

i-just
Copy link
Contributor

@i-just i-just commented Oct 22, 2024

Description

Issue:
When you edit a canonical element in a slideout, make a change and quickly hit the “Save” button before the autosave kicks in, the element is saved, but afterwards, a provisional draft is still created with the updated content.

The issue was not occurring when using the save shortcut, as that path first ensures that the draft is saved before posting to ElementsController->actionSave().

Solution:
After fully saving the element in a slideout, trigger checkForm to get the latest form values, but without creating a draft.

Related issues

#15938

@brandonkelly brandonkelly merged commit c65682e into 5.x Oct 22, 2024
@brandonkelly brandonkelly deleted the bugfix/15938-slideout-savebtn-unnecessary-provisional-draft branch October 22, 2024 19:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants