-
-
Notifications
You must be signed in to change notification settings - Fork 145
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
value relation widget - drive down lists (filter expression) #2561
Comments
@nboisteault please check your mailbox |
Thanks @josemvm . Do you remember when issue first occurred? Lizmap, QGIS Server, lizmap plugin update? |
@nboisteault d don't remember when issue first occurred. thanks |
@nboisteault do you think these issues #2526 and #2540 can be related to this regression (or not)?... |
The attributes of the The regression is probably in the way lizmap build |
@josemvm can you update the expression by removing the space between The expression becomes |
@nboisteault @mdouchin the regexp to get the field name used in preg_match_all('/\\bcurrent_value\\(\\s*\'([^)]*)\'\\s*\\)/', $exp, $matches);
|
This kind of regex is indeed very fragile, especially because expression is nearly a free-text area for users, between line breaks, expression comments, spaces etc... |
@rldhont your suggestion solves the problem! |
What is the bug?
i had the drive down lists working on both side (qgis desktop form and lizmap form), now they only work on the qgis desktop side.
qgis desktop:
lizmap:
`
i'm using this filter expression
"cod_tipo" = current_value ('tipo_abrev')
as you can see it in the qgis server logs as below:09:41:14 INFO Server[375409]: FILTER: "cod_tipo" = current_value ('tipo_abrev')
Steps to reproduce the issue
...
Lizmap version
3.4.6, plugin 3.6.3
QGIS desktop version
3.16.10
QGIS server version
3.16.10
Operating system
Ubuntu 20.04
Browsers
Firefox
Browsers version
93.0
Relevant log output
The text was updated successfully, but these errors were encountered: