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

Date range filter works fine with nullable fields now. #1402

Merged
merged 1 commit into from
Jun 12, 2024

Conversation

Pal9yni4bi
Copy link
Contributor

Old behavior: filter adds interval '0000-00-00' - '9999-12-31' by default, so, null isn't in this range and rows with null-value in filtered field is out of query result.

But if user didn't choose any date, they don't care about value necessity, value might be null, less than 0000-00-00 etc.

New behavior: until user chooses smth in filter, it won't be applied to DB query.

@daaner daaner merged commit d92d58a into LaravelRUS:development Jun 12, 2024
1 check passed
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

2 participants