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

[Form] validate composite constraints in all groups #32037

Merged
merged 1 commit into from Jun 14, 2019

Conversation

xabbuh
Copy link
Member

@xabbuh xabbuh commented Jun 14, 2019

Q A
Branch? 3.4
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets #31990
License MIT
Doc PR

@@ -90,7 +91,9 @@ public function validate($form, Constraint $formConstraint)
$validator->atPath('data')->validate($form->getData(), $constraint, $group);

// Prevent duplicate validation
continue 2;
if (!$constraint instanceof Composite) {
Copy link
Member Author

Choose a reason for hiding this comment

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

This is basically the same fix we already applied in the Validator component last year in #29499.

@fabpot
Copy link
Member

fabpot commented Jun 14, 2019

Thank you @xabbuh.

@fabpot fabpot merged commit 94ded00 into symfony:3.4 Jun 14, 2019
fabpot added a commit that referenced this pull request Jun 14, 2019
This PR was merged into the 3.4 branch.

Discussion
----------

[Form] validate composite constraints in all groups

| Q             | A
| ------------- | ---
| Branch?       | 3.4
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | #31990
| License       | MIT
| Doc PR        |

Commits
-------

94ded00 validate composite constraints in all groups
@xabbuh xabbuh deleted the issue-31990 branch June 14, 2019 07:59
This was referenced Jun 26, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants