Une table non spatiale publiée dans Lizmap possède notamment :
une clé primaire (id) de type integer avec une sequence associée
une contrainte de table vérifiant l'unicité d'une clé composée de deux autres colonnes.
Dans le concepteur de formulaire de cette table, je ne peux pas vérifier l'unicité du couple de colonnes. Je ne peux évidemment pas non plus contraindre des valeurs uniques sur chacune des colonnes. Enfin, je ne peux pas gérer un message d'avertissement explicite.
En faisant un test au cours duquel j'ajoute volontairement un enregistrement qui rompt la contrainte d'unicité de la clé composée, un encadré rouge sans aucun message apparaît en haut du formulaire et l'enregistrement n'est évidemment pas créé. Par contre, la séquence de la clé primaire est incrémentée quand même.
Que pensez-vous de ce problème? Merci pour votre aide
Steps to reproduce the issue
Créer une table avec un serial et une contrainte d'unicité basée sur plusieurs colonnes
La publier
L'éditer avec Lizmap
Créer un doublon et enregistrer: encart rouge sans contenu, pas de ligne créée et séquence incrémentée
What is the bug?
Une table non spatiale publiée dans Lizmap possède notamment :
Steps to reproduce the issue
Créer une table avec un serial et une contrainte d'unicité basée sur plusieurs colonnes La publier L'éditer avec Lizmap Créer un doublon et enregistrer: encart rouge sans contenu, pas de ligne créée et séquence incrémentée
Lizmap version
3.4.4
QGIS desktop version
3.16
QGIS server version
3.16
Operating system
Windwos 10
Browsers
Chrome
Browsers version
Version 92.0.4515.131 (Build officiel) (64 bits)
Relevant log output
No response