duncanmcclean / simple-commerce

A simple, yet powerful e-commerce addon for Statamic.
https://statamic.com/addons/duncanmcclean/simple-commerce
Other
146 stars 40 forks source link

[6.x] Fix infinite loop when querying orders #1049

Closed duncanmcclean closed 5 months ago

duncanmcclean commented 5 months ago

This pull request fixes an issue where you could end up in an infinite loop when querying orders.

This infinite loop was happening due to some code which handles filtering out deleted products from an order's line items, we should be fine to remove the removeLineItems method since we're still returning null (related #734).

This PR also fixes an issue with the UpdateClassReferences upgrade script, where it couldn't handle cases where shipping_method was an array, instead of a string.

Fixes #1043.

github-actions[bot] commented 5 months ago

Released as part of v6.1.0.