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

Fix validation #1377

Merged
merged 1 commit into from
Nov 6, 2021
Merged

Fix validation #1377

merged 1 commit into from
Nov 6, 2021

Conversation

VincentLanglet
Copy link
Member

Subject

Similar to #1323

I am targeting this branch, because bugfix.

Closes #1376.

Changelog

### Fixed
- Block validation in edit mode

@@ -491,6 +491,9 @@
url: url,
data: $form.serialize(),
type: method,
headers: {
Accept: 'text/html, application/xhtml+xml;'
},
success: function (resp) {
$loader.hide();
if (resp.result && resp.result === 'ok') {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If the accepted type is only HTML, how is this condition supposed to work?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Honestly, I know nothing at all about this.

The original issue was
#1318
a similar is now for edit
#1376

I just did the PR as asked by @gremo

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@phansys @VincentLanglet the explanation of the fix was in the original issue #1318 (comment) if you have some question just ask

@VincentLanglet VincentLanglet requested review from phansys and a team November 3, 2021 09:08
@VincentLanglet
Copy link
Member Author

Please review @sonata-project/contributors

@jordisala1991 jordisala1991 merged commit e35853b into sonata-project:3.x Nov 6, 2021
@jordisala1991
Copy link
Member

Thanks @VincentLanglet

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Block validation (edit mode) doesn't work properly in page composer
5 participants