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

[Bug-Fix] When shipping address is null (e.g. virtual products) there is an error #20

Merged
merged 1 commit into from
Oct 25, 2018

Conversation

ioweb-gr
Copy link
Contributor

I've encountered this on our website when trying to anonymize a user's existing orders. The products are virtual and the user isn't required to fill in his shipping details, therefore the shipping address in this case is null and not an Id. Therefore $order->getShippingAddress() will return false and there is no handling for this use case.

This pull request is a suggestion but maybe you want to implement a more robust check in this scenario.

@FredericMartinez
Copy link
Member

Nice, thanks!

@bastienlm bastienlm changed the base branch from master to develop October 25, 2018 09:53
@bastienlm
Copy link
Contributor

Thanks for your contribution, this fix will be add to the next release 👍

@bastienlm bastienlm self-requested a review October 25, 2018 09:55
@bastienlm bastienlm merged commit 75f87a9 into PH2M:develop Oct 25, 2018
@ioweb-gr
Copy link
Contributor Author

Great thank you :) Now I can update automatically again

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants