From 6a4240041858883a83baad08012a0604b19c8873 Mon Sep 17 00:00:00 2001 From: Etienne Trimaille Date: Wed, 11 Sep 2024 15:54:16 +0200 Subject: [PATCH] init relation ID in tooltip.py --- lizmap_server/tooltip.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lizmap_server/tooltip.py b/lizmap_server/tooltip.py index 3a507995..85919526 100755 --- a/lizmap_server/tooltip.py +++ b/lizmap_server/tooltip.py @@ -140,6 +140,8 @@ def create_popup_node_item_from_form( a += Tooltip._generate_field_name(name, fname, field_view) if isinstance(node, QgsAttributeEditorRelation): + # https://github.com/3liz/qgis-lizmap-server-plugin/issues/82 + node.init(relation_manager) # Initializes the relation from the ID relation = node.relation() if relation: a += Tooltip._generate_attribute_editor_relation(