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

Allow nullable shop billing data #10116

Merged
merged 2 commits into from
Jan 25, 2019

Conversation

Zales0123
Copy link
Member

Q A
Branch? master
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Related tickets introduced in #10079
License MIT

During the implementation, I thought it's not possible to return null as shop billing data (as there is a $this->shopBillingData = new ShopBillingData(); set in a channel constructor), but actually it can happen if you already have some channels in your database, you update Sylius to 1.4 and then you try to edit an existing channel :/

zrzut ekranu 2019-01-24 o 10 01 33

@Zales0123 Zales0123 added the Potential Bug Potential bugs or bugfixes, that needs to be reproduced. label Jan 24, 2019
@Zales0123 Zales0123 requested a review from a team as a code owner January 24, 2019 09:08
Copy link
Contributor

@pamil pamil left a comment

Choose a reason for hiding this comment

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

Shouldn't we remove setting the new shop billing data from the constructor then?

@pamil pamil merged commit c3a2dae into Sylius:master Jan 25, 2019
@pamil
Copy link
Contributor

pamil commented Jan 25, 2019

Thank you, Mateusz! 🎉

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.

3 participants