-
Notifications
You must be signed in to change notification settings - Fork 371
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 issue when discount relation dates are null #797
Fix issue when discount relation dates are null #797
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Tests are running fine for me locally, could the error be a Github issue? |
@ryanmitchell I've updated this PR from My only question from this would be, if a Discount doesn't have a start date, should it be considered as |
The change doest affect discount start/end dates - its the the start/end for the groups and channels, which arent editable through the UI so therefore default to NULL. |
@ryanmitchell I might be looking in the wrong place, when editing a discount I can see this section: When clicking the the link text I get the prompt to choose dates: Or am I misunderstanding? |
No I missed that they were clickable to set the dates. But if you dont set a date they still default to NULL (as I did), so either thats acceptable or the channel/group start date needs to be defaulted to the same as the discount one? |
Yeah I'm with you now, got a bit confused. This PR is correct as if you don't have a date set for channel or group it's considered always available. |
Thanks, I should have been clearer! |
This PR fixes an issue when starts_at and ends_at dates are null on channelables and customer group relations to discounts, causing the discount to not be selectable.