Using WhereMaxMin filter type with zero "0" input fails #2777
macit-emre
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
When using filters Max Min in table, the default behaviour is ignoring 0 input in the fields.
the condition inside $builder->when("0" ?? null, ....) does not trigger to filter because, string "0" is literally false when using in if conditions.
to make it work, i override the class and use it with isset,
Maybe you should fix this in the repo too.
Beta Was this translation helpful? Give feedback.
All reactions