diff --git a/lizmap/plugin.py b/lizmap/plugin.py index dc8a78d0..8fd05410 100755 --- a/lizmap/plugin.py +++ b/lizmap/plugin.py @@ -3013,7 +3013,10 @@ def maptip_from_form(self): root = config.invisibleRootContainer() relation_manager = self.project.relationManager() - html_content = Tooltip.create_popup_node_item_from_form(layer, root, 0, [], '', relation_manager) + html_content = Tooltip.create_popup_node_item_from_form( + layer, root, 0, [], '', relation_manager, + bootstrap_5=self.current_lwc_version() >= LwcVersions.Lizmap_3_9, + ) html_content = Tooltip.create_popup(html_content) html_content += Tooltip.css() self._set_maptip(layer, html_content) diff --git a/lizmap/test/test_tooltip.py b/lizmap/test/test_tooltip.py index 92323eaa..06324322 100755 --- a/lizmap/test/test_tooltip.py +++ b/lizmap/test/test_tooltip.py @@ -503,7 +503,7 @@ def test_tooltip_layer(self): root = config.invisibleRootContainer() # noinspection PyArgumentList html_content = Tooltip.create_popup_node_item_from_form( - layer, root, 0, [], '', QgsProject.instance().relationManager()) + layer, root, 0, [], '', QgsProject.instance().relationManager(), bootstrap_5=False) self.maxDiff = None expected = '''