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

Fix coupon expiry date #887

Merged
merged 3 commits into from
Jul 2, 2023
Merged

Fix coupon expiry date #887

merged 3 commits into from
Jul 2, 2023

Conversation

duncanmcclean
Copy link
Owner

This pull request fixes an issue that would crop up when trying to create/update a coupon since it was expecting expires_at to be a date.

However, from v4 onwards, the Date fieldtype sends an array with date & time keys.

I fixed this for new coupons in #885 but this PR fixes it for updating coupons and also adds test cases to cover it.

@duncanmcclean duncanmcclean merged commit f9c0401 into 5.x Jul 2, 2023
5 checks passed
@duncanmcclean duncanmcclean deleted the fix/coupon-expiry-date branch July 2, 2023 21:30
@github-actions
Copy link

github-actions bot commented Jul 3, 2023

Released as part of v5.3.0.

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.

None yet

1 participant