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

Call rebindCallback on errors as well #9688

Merged

Conversation

nielslyngsoe
Copy link
Member

@nielslyngsoe nielslyngsoe commented Jan 20, 2021

Fixes #9341

When new content is created and saved with errors, it's still begin saved and therefore it's not new anymore and future saves should be changes of this. Therefore it's important that ID, Key, and other identifiers of this new content are parsed on. This is done by the rebindCallback and therefor we should call it despite validation issues.

I do have concerns: we have several Property Editors that react when the Content Model is updated, I hope these will still work as intended, our test focus should be around this topic.


This item has been added to our backlog AB#10081

@nul800sebastiaan nul800sebastiaan merged commit 6d712b0 into v8/contrib Jan 20, 2021
@nul800sebastiaan nul800sebastiaan deleted the v8/bugfix/9341-call-rebindcallback-on-error branch January 20, 2021 13:11
nul800sebastiaan pushed a commit that referenced this pull request Jan 20, 2021
(cherry picked from commit 6d712b0)

# Conflicts:
#	src/Umbraco.Web.UI.Client/src/common/directives/components/content/edit.controller.js
#	src/Umbraco.Web.UI.Client/src/common/services/contenteditinghelper.service.js
@nielslyngsoe nielslyngsoe added the state/sprint-candidate We're trying to get this in a sprint at HQ in the next few weeks label Jan 20, 2021
@umbrabot umbrabot removed state/sprint-candidate We're trying to get this in a sprint at HQ in the next few weeks labels Jan 21, 2021
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.

Save error after validation fail
3 participants