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] Fix the usage of the Valid constraints in array-based forms#45702

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

Merged
stof merged 1 commit intosymfony:4.4fromstof:fix_form_valid_constraints
Mar 11, 2022

Conversation

@stof
Copy link
Member

QA
Branch?4.4
Bug fix?yes
New feature?no
Deprecations?no
Ticketsn/a
LicenseMIT
Doc PRn/a

This is a bug introduced in#39333. When wanting to exclude scalar forms, it also excluded array forms.
The code now uses the same\is_object($data) || \is_array($data) condition forValid constraint than the condition it uses as part of the$validateDataGraph condition.

The new tests reflects my own use case: an unmapped collection field, were we want to run the validation on that subtree (which is not traversed for other reasons due to being unmapped, and so we needValid). This was working fine in older versions of Symfony, but the validation was silently skipped in 4.4.18+.

@carsonbotcarsonbot added this to the4.4 milestoneMar 10, 2022
@carsonbotcarsonbot changed the titleFix the usage of the Valid constraints in array-based forms[Form] Fix the usage of the Valid constraints in array-based formsMar 10, 2022
@stofstofforce-pushed thefix_form_valid_constraints branch fromde1ebfc to542c2fbCompareMarch 10, 2022 13:05
@stofstof merged commita2fc328 intosymfony:4.4Mar 11, 2022
@stofstof deleted the fix_form_valid_constraints branchMarch 11, 2022 09:19
This was referencedApr 2, 2022
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@ycerutoycerutoyceruto approved these changes

@xabbuhxabbuhAwaiting requested review from xabbuhxabbuh is a code owner

Assignees

No one assigned

Projects

None yet

Milestone

4.4

Development

Successfully merging this pull request may close these issues.

3 participants

@stof@yceruto@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp