From 99aeb328c189aa336d22f58d445e6a8adeb97665 Mon Sep 17 00:00:00 2001 From: Riccardo Beltrami Date: Tue, 24 Sep 2024 14:14:42 +0200 Subject: [PATCH] place text widget in right list --- lizmap_server/tooltip.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lizmap_server/tooltip.py b/lizmap_server/tooltip.py index 5e930af2..55948393 100755 --- a/lizmap_server/tooltip.py +++ b/lizmap_server/tooltip.py @@ -211,7 +211,8 @@ def create_popup_node_item_from_form( a += h continue # If it is root children, store html in the right list - if isinstance(n, QgsAttributeEditorField): + if isinstance(n, QgsAttributeEditorField) or (isinstance(n, QgsAttributeEditorElement) and n.type() == 6): + # TODO QGIS_VERSION_INT 3.30.0 Change the integer with the QGIS enum `Qgis.AttributeEditorType.TextElement` if not headers: before_tabs.append(h) else: