LaravelRUS / SleepingOwlAdmin

🦉 Administrative interface builder for Laravel (Laravel admin)
http://sleepingowladmin.ru/
MIT License
799 stars 216 forks source link

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

Closed Pal9yni4bi closed 3 months ago

Pal9yni4bi commented 3 months ago

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.