Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[Form] Applying bug #18935 fix (done only on symfony/form)#20960

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Closed
Ghriim wants to merge1 commit intosymfony:masterfromGhriim:master
Closed

Conversation

@Ghriim
Copy link

QA
Branch?3.2
Bug fix?yes
New feature?no
BC breaks?yes (only for the behavior)
Deprecations?no
Tests pass?yes
Fixed ticketssymfony/form#11493
LicenseMIT
Doc PRseesymfony/form@8502f30)

@HeahDude
Copy link
Contributor

This is a duplicate of#18935 which has been reverted.

Sadly we cannot afford this bc break, prepopulating data in a form does not belong to the scope of its validation if it is not submitted.

Btw, calling$form->isValid() without calling$form->isSubmitted() first has been deprecated in 3.2, so this can be more consistant.

@fabpotfabpot closed thisDec 16, 2016
@Ghriim
Copy link
Author

I've discover this bug fix from this ticket#11493
Is their any work around for PATCH context if the fix on ViolationMapper is finally reverted ?

mlivan reacted with thumbs up emoji

@HeahDude
Copy link
Contributor

@Ghriim$this->get('validator')->validate($form->getData()) should be enough to avoid persisting wrong data ;), but you'll have to handle errors yourself though.

@xabbuh
Copy link
Member

Can you confirm that the changes proposed in#30265 will fix this issue?

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

5 participants

@Ghriim@HeahDude@xabbuh@fabpot@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp