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.
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
On a sub project embed a layer from a master project
In the sub project activate in the lizmap Plugin the selection functionality/or create an action file
Check the functionality on LWC
Versions
Lizmap Web Client : 3.5.14 / and tested as well on 3.6.4
Lizmap plugin : 3.16.3
QGIS Desktop : 3.16.11
QGIS Server : 3.22.7
Py-QGIS-Server : not used
QGIS Server plugin atlasprint : 3.3.2
QGIS Server plugin cadastre : 1.17.3
QGIS Server plugin lizmap_server : 2.8.0
QGIS Server plugin wfsOutputExtension : 1.7.1
Check Lizmap plugin
[X] I have done the step just before in the Lizmap QGIS desktop plugin before opening this ticket. Otherwise, my ticket is not considered valid and might get closed.
QGIS server version, only if the section above doesn't mention the QGIS Server version
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 theservice.classic.php
file does not take into account the embed layers.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
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