3liz / lizmap-web-client

Transfer a QGIS project on a server, Lizmap is providing the web interface to browse it
https://www.lizmap.com
Mozilla Public License 2.0
257 stars 143 forks source link

[Bug]: Values get repeated when using pop-up with QGIS form mode #4892

Open gioman opened 1 week ago

gioman commented 1 week ago

What is the bug? (in English)

I noticed the following in a layer that had it widget configured as value relation

Captura de ecrã 2024-10-20 125819

If the pop-up is set as

image

then in LMWC the value for that field is shown repeated, example:

instead of

quercus_suber

it shows

quercus_suberquercus_suber

If the widget is changed to "text edit", this stops to happen.

Steps to reproduce the issue

See description.

Versions, safeguards, check summary etc

Versions :

List of Lizmap Web Client modules :
* Version Lizmap Web Client 3.8 needed
List of safeguards :
* Mode : normal * Allow parent folder : no * Prevent other drive : yes * Prevent PG service : no * Prevent PG Auth DB : yes * Force PG user&pass : yes * Prevent ECW : yes

Check Lizmap plugin

Operating system

Ubuntu 22.04

Browsers

Firefox, Chrome

Browsers version

Latest updates

Relevant log output

No response

Gustry commented 1 week ago

Do you have any logs from QGIS Server of the request ? Do you have any screenshot and/or extract of the HTML produced ? 'GetFeatureInfoRequest` in the developer tools of the webbrowser.

I didn't reproduce for now.