Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: popup relation - div popup_lizmap_dd_relation empty in parent #4407

Open
1 task done
pierre56 opened this issue May 3, 2024 · 2 comments
Open
1 task done
Labels

Comments

@pierre56
Copy link

pierre56 commented May 3, 2024

What is the bug? (in English)

The relationships are not integrated into the parent's popup. I've tested all possible configurations (drag and drop or automatic).

The relationships are properly declared.

The WMS/WFS streams are also.

I don't understand why the update checkbox is not available even though the user has the rights 😅

The drag and drop forms work fine in QGIS Desktop and in the Lizmap plugin.

The QGIS/QGIS Server versions are equivalent, and the project works perfectly in QGIS Desktop.

My base project is complex, with several tabs and several relationships, but even with a minimal version of the project (1 parent table + 1 child table + 1 nomenclature table), I can't get the correct display of the div in the parent popup.

If I check "Display associated children", the children appear under the parent's popup in their own "compact table" popup, but not in the parent.

I can't do this because the project would be unreadable with all the children cascading.


Bonjour,

Les relations ne sont pas intégrés dans la popup du parent.
J'ai testé toutes les configurations possibles ( drag and drop ou auto)

Les relations sont bien déclarées
image

les flux wms/wfs aussi,
image

je ne comprends pourquoi la case maj n'est pas dispo alors que l'user a les droits😅

les formulaires drag and drop ok dans qgis desktop et dans le plugin lizmap
image
image

les version qgis/qgis-server sont équivalentes
et le projet marche parfaitement dans qgis desktop
image

Mon projet de base est complexe
image
avec plusieurs onglets et plusieurs relations

mais même avec une version minimale du projet (1 table parent + 1 table enfant + 1 table nomenclature)
je n'arrive pas avoir l'affichage correcte de la div dans la popup parent.

<div id="popup_relation_t_reserves_infos_d58fe949_b224_4438_96bd_dad4e936bf15_id_reserve_t_reserves_f2291bf5_b9e1_4c2d_9d3b_25fe30b1f8b2_id_reserve" data-relation-id="t_reserves_infos_d58fe949_b224_4438_96bd_dad4e936bf15_id_reserve_t_reserves_f2291bf5_b9e1_4c2d_9d3b_25fe30b1f8b2_id_reserve" data-referencing-layer-id="t_reserves_infos_d58fe949_b224_4438_96bd_dad4e936bf15" class="popup_lizmap_dd_relation">
  </div>

image

Si je coche "afficher les enfants associés", les enfants apparaissent sous la popup du parent dans sa propre popup 'table compacte' mais pas dans le parent

je ne peux pas faire cela car le projet serait illisible avec tout les enfants en cascade
image


le problème semble venir de tooltip et j'ai peur que ma demande soit reliée avec le
ticket #3756

Pourriez vous m'indiquer si j'ai loupé une étape ou si ce que je veux faire n'est pas faisable ?
Merci

Steps to reproduce the issue

  1. add a parent table
  2. add a relation with child table
  3. configure drag and drop
  4. hope to see child infos in parent table in popup

Versions, safeguards, check summary etc

Versions :

  • Lizmap Web Client : 3.7.6
  • Lizmap plugin : 4.3.11
  • QGIS Desktop : 3.28.11
  • QGIS Server : 3.28.15
  • Py-QGIS-Server : not used
  • QGIS Server plugin atlasprint : 3.3.2
  • QGIS Server plugin lizmap_server : 2.9.0
  • QGIS Server plugin wfsOutputExtension : 1.8.0
List of safeguards :
  • Mode : safe
  • Allow parent folder : no
  • Prevent other drive : yes
  • Prevent PG service : yes
  • Prevent PG Auth DB : yes
  • Force PG user&pass : yes
  • Prevent ECW : yes

Check Lizmap plugin

  • 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.

Operating system

debian 12.5

Browsers

Firefox

Browsers version

125.0.3

Relevant log output

12:22:37 INFO Server[37042]: ******************** New request ***************
12:22:37 INFO Server[37042]: Request URL: xxxxx/cgi-bin/qgis_mapserv.fcgi
12:22:37 INFO Server[37042]: Environment:
12:22:37 INFO Server[37042]: ------------------------------------------------
12:22:37 INFO Server[37042]: SERVER_NAME: xxxxxx.org
12:22:37 INFO Server[37042]: REQUEST_URI: /cgi-bin/qgis_mapserv.fcgi
12:22:37 INFO Server[37042]: SCRIPT_NAME: /cgi-bin/qgis_mapserv.fcgi
12:22:37 INFO Server[37042]: REMOTE_ADDR: 127.0.0.1
12:22:37 INFO Server[37042]: SERVER_PORT: 80
12:22:37 INFO Server[37042]: QUERY_STRING: 
12:22:37 INFO Server[37042]: CONTENT_TYPE: application/x-www-form-urlencoded
12:22:37 INFO Server[37042]: REQUEST_METHOD: POST
12:22:37 INFO Server[37042]: SERVER_PROTOCOL: HTTP/1.1
12:22:37 WARNING Server[37042]: Error parsing post data as XML: at line 1, column 1: error occurred while parsing element. Assuming urlencoded query string sent in the post body.
12:22:37 INFO Lizmap[37042]: Request headers provided
12:22:37 INFO Lizmap[37042]: No lizmap user groups in request headers
12:22:37 INFO Lizmap[37042]: Lizmap user groups in parameters : admins,users
12:22:37 INFO Lizmap[37042]: Fetching /var/www/html/carto_lizmap/reseau2reserves/minimal_reserve_info.qgs.cfg cfg file with last modified timestamp : 1714731683.0
12:22:37 INFO Lizmap[37042]: No acl defined in Lizmap config
12:22:37 INFO WfsOutputExtension[37042]: requestReady ran in 0.0s
12:22:37 INFO Server[37042]: BBOX:132720.285618,6801154.90295,137108.144394,6803212.307064
12:22:37 INFO Server[37042]: CRS:EPSG:2154
12:22:37 INFO Server[37042]: DPI:96
12:22:37 INFO Server[37042]: FILTER:t_reserves:"id_reserve" IN ( 58 ) 
12:22:37 INFO Server[37042]: FILTERTOKEN:xxxxxxxxxxxxxxxxx
12:22:37 INFO Server[37042]: FORMAT:image/png
12:22:37 INFO Server[37042]: HEIGHT:778
12:22:37 INFO Server[37042]: LAYERS:t_reserves
12:22:37 INFO Server[37042]: LIZMAP_OVERRIDE_FILTER:1
12:22:37 INFO Server[37042]: LIZMAP_USER:admin_pierre
12:22:37 INFO Server[37042]: LIZMAP_USER_GROUPS:admins, users
12:22:37 INFO Server[37042]: MAP:/var/www/html/carto_lizmap/reseau2reserves/minimal_reserve_info.qgs
12:22:37 INFO Server[37042]: REQUEST:getmap
12:22:37 INFO Server[37042]: SERVICE:WMS
12:22:37 INFO Server[37042]: STYLES:default
12:22:37 INFO Server[37042]: TRANSPARENT:true
12:22:37 INFO Server[37042]: TS:1714731756419
12:22:37 INFO Server[37042]: VERSION:1.3.0
12:22:37 INFO Server[37042]: WIDTH:1658
12:22:37 INFO AccessControlFilter[37042]: QgsAccessControlFilter plugin default layerPermissions called
12:22:37 INFO Lizmap[37042]: Request headers provided
12:22:37 INFO Lizmap[37042]: No lizmap user groups in request headers
12:22:37 INFO Lizmap[37042]: Lizmap user groups in parameters : admins,users
12:22:37 INFO Lizmap[37042]: Request headers provided
12:22:37 INFO Lizmap[37042]: No lizmap user login in request headers
12:22:37 INFO Lizmap[37042]: Lizmap user login in parameters : admin_pierre

> Error parsing post data as XML ?

----------
12:22:29 INFO Lizmap[37042]: Fetching /var/www/html/carto_lizmap/reseau2reserves/minimal_reserve_info.qgs.cfg cfg file with last modified timestamp : 1714731683.0
12:22:29 INFO Lizmap[37042]: No edition config defined for layer: t_reserves_infos (t_reserves_infos_d58fe949_b224_4438_96bd_dad4e936bf15)

> why no edition config ? 

----------

12:22:33 INFO Lizmap[37042]: The popup has been replaced for feature ID '58' in layer 't_reserves'
12:22:33 INFO Lizmap[37042]: Replacing the maptip from QGIS by the drag and drop expression for 1 features on t_reserves
12:22:33 INFO Lizmap[37042]: Replacing feature '58' in layer 't_reserves' for the GetFeatureInfo by the drag&drop form
12:22:33 INFO Lizmap[37042]: GetFeatureInfo replaced for project /var/www/html/carto_lizmap/reseau2reserves/minimal_reserve_info.qgs

> seems good to me...

And 0 critical error or bad warning beside xml error
@pierre56 pierre56 added the bug label May 3, 2024
@pierre56
Copy link
Author

Bonjour,
Je relance le ticket, Auriez-vous une piste pour mon problème ? 😄
Merci

@pierre56
Copy link
Author

pierre56 commented Jun 5, 2024

Bonjour,
désolé de vous déranger @nboisteault ou @Gustry ,
Mais auriez vous une solution car bug ou alors ce que je veux faire n'est pas possible ?
Merci 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant