-
-
Notifications
You must be signed in to change notification settings - Fork 146
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
Form filter - Also search for NULL values when empty string is checked #5269
base: master
Are you sure you want to change the base?
Conversation
cc @Gustry FYI |
d7c3984
to
c910777
Compare
For some tests, the best would be some basic JavaScript function to be able to use JSUnit. To be inspired from Lizmap server to format SQL query, according to a list of parameters :
I know it's not easy in this "legacy" JS file, just the idea |
Yes, according to the initial planning https://github.com/3liz/lizmap-web-client/wiki/Versions#diagram We decided to have less overlap between branches. As 3.8.0 has been released in September 2024 and we are already at 3.8.4, we considered 3.8.X to be stable enough and to not maintain an too many branches in parallel. 3.7 should be already EOL since december, we added one extra release in January. |
@rldhont @nboisteault OK to merge ? NB: I removed to backport-3.7 tag |
In Lizmap form filter, you can use a field containing several values by configuring a "Unique values" field type.
Lizmap show a list of checkboxes which allow the user to check which values should be used for the filter. For example:
In the example above, the checkbox with no label corresponds to the features which have a
NULL
value for this field.This modification fixes the previous behaviour which triggered a filter
"acces" IN ( '' )
by adding a test on theNULL
value. The new filter is the correct :( "acces" IN ( '' ) OR acces IS NULL )
Funded by Destination Bretagne Sud - Golfe du Morbihan https://destination-bretagnesud.bzh/