Skip to content

[Bug]: Layer edition error when quote in postgreSQL column name #5651

@nworr

Description

@nworr

What is the bug? (in English)

When a postgis layer has a column with a quote (') in it , the edition form is in error

The js code generated by jelix doesn't escape the single quote (because QgisForm Object doesn't escape fieldname ?)

Image

Steps to reproduce the issue

create a postgis table with a column using a single quote in its name

Versions, safeguards, check summary etc

Lizmap 3.8.7.8465
QGIS 3.34

Check Lizmap plugin

  • I have done the step just before in the Lizmap QGIS desktop plugin before opening this ticket. Otherwise, my ticket is not considered valid and might get closed.

Operating system

Whatever

Browsers

Chrome

Browsers version

??

Relevant log output

see above.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions