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] LWC 3.8 : Children attribute table not displayed if the layer has a space ? #4935

Open
1 task done
Alain-LG opened this issue Nov 5, 2024 · 5 comments
Open
1 task done

Comments

@Alain-LG
Copy link

Alain-LG commented Nov 5, 2024

What is the bug? (in English)

Since I've been using LWC version 3.8, I've lost the child attribute table.
I can see the parent's attribute table and the button but when I choose a parent the list of children is not displayed.

It was OK with LWC versions 3.7 and 3.6

Steps to reproduce the issue

  1. I have declared a relation between my table "Suivi marché" and "tronçons"
  2. I have plublished them by WFS
  3. I have added them in the attribute table tab
  4. When I show the parents'attribute table, Its OK.
  5. When I click on a parent, the list of children is not diplayed.

image

Versions, safeguards, check summary etc

Versions :

  • Lizmap Web Client : 3.8.2
  • Lizmap plugin : 4.4.4
  • QGIS Desktop : 3.34.11
  • Lizmap.com : Yes
  • QGIS Server : 3.34.11
  • Py-QGIS-Server : 1.9.1
  • QGIS Server plugin DataPlotly : Not installed
  • QGIS Server plugin atlasprint : 3.4.1
  • QGIS Server plugin cadastre : 1.20.0
  • QGIS Server plugin lizmap_server : 2.11.2
  • QGIS Server plugin wfsOutputExtension : 1.8.2
List of Lizmap Web Client modules :
* saas : 1.7.4 * webdav : 1.1.6
List of safeguards :
* Mode : normal
* Allow parent folder : yes
* Number of parent : 2 folder(s)
* 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

Hébergement lizmap

Browsers

Firefox

Browsers version

128.0

Relevant log output

No log output to share.
@Alain-LG Alain-LG added the bug label Nov 5, 2024
@Alain-LG Alain-LG changed the title [Bug]: [Bug] LWC 3.8 : Children attribute table not displayed Nov 5, 2024
@Gustry
Copy link
Member

Gustry commented Nov 5, 2024

Can you please send the URL ?

I do not confirm with tests projects : https://sandbox.lizmap.com/lizmap_3_8/index.php/view/map?repository=tests&project=form_edit_related_child_data

@Gustry Gustry added the feedback label Nov 5, 2024
@Alain-LG
Copy link
Author

Alain-LG commented Nov 5, 2024

I agree with you, It's OK with a copy of your "cats demo" project on my own instance hosted on your servers. I tried this to know if it was an installation problem or if it comes from my project...

Here is my URL : XXX
You can use this login/pwd to connect : xxx/xxx

I don't understad why my childrens attribute table is not displayed whereas I think I have done the same configuration.

I'm currently looking for a solution by changing my foreign key name to lowercase. As a result, I have other small problems due to this field name change.
This foreign key is declared as a relationship reference in the QGIS desktop, could it be the cause of this trouble ?

Thanks a lot for your help.

@Alain-LG
Copy link
Author

Alain-LG commented Nov 6, 2024

I found the reason why it wasn't working: my layer names contain spaces.

The solution is therefore to rename the layer in the layer tree and modify the title of these layers in the metadata.

@Alain-LG Alain-LG closed this as completed Nov 6, 2024
@Gustry
Copy link
Member

Gustry commented Nov 6, 2024

The solution is therefore to rename the layer in the layer tree and modify the title of these layers in the metadata.

So there is an issue.
But there are a few corner cases, like if your layer has a shortname etc.

Can you replicate the issue on a project ?

@Gustry Gustry reopened this Nov 6, 2024
@Gustry Gustry removed the feedback label Nov 6, 2024
@Gustry Gustry changed the title [Bug] LWC 3.8 : Children attribute table not displayed [Bug] LWC 3.8 : Children attribute table not displayed if the layer has a space ? Nov 6, 2024
@Gustry
Copy link
Member

Gustry commented Nov 6, 2024

I'm not sure if the space is the real problem. I just added some test data in #4942 , I couldn't replicate with only the space difference. I haven't debug more for now.

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

No branches or pull requests

2 participants