Skip to content

Commit

Permalink
Tooltip.py - Update how to find the relation ID
Browse files Browse the repository at this point in the history
  • Loading branch information
Gustry committed Sep 11, 2024
1 parent a192baf commit 39b889b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lizmap/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 39b889b

Please sign in to comment.