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

[4.x] Ensure date is only filled when provided in request #69

Merged
merged 2 commits into from
May 18, 2024

Conversation

duncanmcclean
Copy link
Owner

This pull request fixes an issue with Date fields in the create & update forms, where when the user didn't provide a date in the form, Guest Entries would have defaulted to the current date instead of not setting one at all.

This was happening since $value was null but Carbon::parse() returns the current date when a null value is passed.

Fixes #67.

@duncanmcclean duncanmcclean merged commit 13004bc into 4.x May 18, 2024
9 checks passed
@duncanmcclean duncanmcclean deleted the fix/optional-date-fields branch May 18, 2024 14:40
Copy link

Released as part of v4.0.1.

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.

Date field does not clear when empty
1 participant