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
249 stars 141 forks source link

[Bug]: values in relation tables are not sorted alphabetically #4419

Open InnovPlantProtect opened 2 months ago

InnovPlantProtect commented 2 months ago

What is the bug? (in English)

I have a table in postgresql which has several tables related to it. Each of these tables are lists and their values need to be sorted alphabetically to facilitate the data input. In QGIS if i edit the table and add a new records, then the values of the lists appear sorted. However, when i publish the project in lizmap and i add a new record, these values do not appear in alphabetical order anymore.

Steps to reproduce the issue

Upload a table from postgres with related tables (lists). Check that the related tables (lists) are mapped in the form (see screenshot below) table_property Then publish the project in lizmap. In lizmap open the form and add the values. As showed below the values are not sorted IMG20240508145557_cropped

Versions, safeguards, check summary etc

Versions :

List of safeguards :
* Mode : safe * Allow parent folder : no * Prevent other drive : yes * Prevent PG service : yes * Prevent PG Auth DB : yes * Force PG user&pass : yes * Prevent ECW : yes

Check Lizmap plugin

Operating system

Ubuntu 22

Browsers

Firefox, Chrome

Browsers version

recent

Relevant log output

No response

gioman commented 2 months ago

@Gustry possibly related to https://github.com/qgis/QGIS/pull/52249

gioman commented 1 month ago

@Gustry Can we have some feedback here? If necessary we can revert the commit in QGIS that apparently caused this regression (if we have understand well the problem).

Gustry commented 1 month ago

Sorry, I don't know, I was just adding a label for triaging.