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 error from the Status Log fieldtype when using Database Orders #1022

Closed duncanmcclean closed 7 months ago

duncanmcclean commented 7 months ago

This pull request fixes an issue with the Status Log fieldtype when using storing orders in the database, where the $statusLogEvent['timestamp'] would be cast to a Carbon instance but the StatusLogEvent class requires a timestamp.

This PR fixes that by checking if the timestamp is a Carbon instance and converting its value so it passes the expected value.

github-actions[bot] commented 7 months ago

Released as part of v6.0.8.