3liz / lizmap-web-client

Transfer a QGIS project on a server, Lizmap is providing the web interface to browse it
https://www.lizmap.com
Mozilla Public License 2.0
260 stars 143 forks source link

[Bug]: Bug on different functionnalities when using embed layers #3840

Open arno974 opened 1 year ago

arno974 commented 1 year ago

What is the bug?

I have a master QGIS project that is used by various other QGIS sub-projects (using embed layers or groups). I've noticed that some functionalities such as selection or action doesn't work on embed layers. The same functionality works fine if the layer is not embedded.

For example, an action define for the master project works fine. But the same action on an embed layer in a sub project displays an error Layer not in project. It looks like the service.classic.php file does not take into account the embed layers.

unnamed

Using an embed layer for the selection was not possible as well. I could not test all other Lizmap functionality but they have probably the same limitations.

Steps to reproduce the issue

  1. On a sub project embed a layer from a master project
  2. In the sub project activate in the lizmap Plugin the selection functionality/or create an action file
  3. Check the functionality on LWC

Versions

Check Lizmap plugin

QGIS server version, only if the section above doesn't mention the QGIS Server version

3.22.7

Operating system

Ubuntu

Browsers

Firefox

Browsers version

Firefox

Relevant log output

No response

Gustry commented 1 year ago

Looks like similar to #2668 ? ;-)