Skip to content

Commit

Permalink
init relation ID in tooltip.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Gustry committed Sep 11, 2024
1 parent d819230 commit 6a42400
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lizmap_server/tooltip.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 6a42400

Please sign in to comment.