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

[Addressing] Fix default validation groups of AddressType #9436

Merged
merged 1 commit into from
May 31, 2018
Merged

[Addressing] Fix default validation groups of AddressType #9436

merged 1 commit into from
May 31, 2018

Conversation

vvasiloi
Copy link
Contributor

Q A
Branch? 1.1
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Related tickets no
License MIT

Once the $options['shippable'] is true, 'shippable' validation group is added persistently to the form type default validation groups and used subsequently despite the $options['shippable'] value.
In case of \Sylius\Bundle\CoreBundle\Form\Type\Checkout\AddressType which has 2 fields of that type, both of them will have validation groups including shippable, even if the 2nd one (billingAddress) does not have 'shippable' => true option.
Moreover, in case of more than 1 field with 'shippable' => true, validation groups will contain an entry of shippable group per field.

@pamil pamil added the Potential Bug Potential bugs or bugfixes, that needs to be reproduced. label May 31, 2018
@pamil pamil changed the base branch from 1.1 to 1.0 May 31, 2018 12:47
@pamil
Copy link
Contributor

pamil commented May 31, 2018

Rebased to 1.0 in order to include that in the last bugfix release for that branch, good to merge as soon as tests pass.

@pamil pamil merged commit 8a77324 into Sylius:1.0 May 31, 2018
@pamil
Copy link
Contributor

pamil commented May 31, 2018

Thank you, Victor! 🎉

@vvasiloi vvasiloi deleted the patch-2 branch May 31, 2018 14:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Potential Bug Potential bugs or bugfixes, that needs to be reproduced.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants