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

MHC-491: fix PostNL order data save, when ac_information exist in req… #6

Merged

Conversation

kis28viktor
Copy link
Contributor

@kis28viktor kis28viktor commented Apr 3, 2024

Fix PostNL order data save, when ac_information exist in request params

Problem description:
in some cases on checkout (for example when selecting Norway country) when saving PostNL order data there are ac_information data set in request params. This data is array, but was set via just $order->setData() as string value.
Which throws an error during saving it to database.
So in case of ac_information now it is using $postnlOrder->setAcInformation($value) method, which is serializing value before setting it.

@Tjitse-E Tjitse-E merged commit 69598e7 into master Apr 19, 2024
2 checks passed
@Tjitse-E Tjitse-E deleted the bugfix/MHC-491-fix_postnl_order_data_save_with_ac_information branch April 19, 2024 08:19
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.

2 participants