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

Relation reference widget: data is displayed in combobox but not in embedded form #27170

Closed
qgib opened this issue Jul 5, 2018 · 7 comments
Closed
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Forms Regression Something which used to work, but doesn't anymore

Comments

@qgib
Copy link
Contributor

qgib commented Jul 5, 2018

Author Name: Andreas Neumann (@andreasneumann)
Original Redmine Issue: 19342
Affected QGIS version: 3.3(master)
Redmine category:edit_widget
Assignee: David Signer


When one uses a relation reference widget, where the embedded is also displayed, data is shown in the combobox, but not in the embedded form.

Can be reproduced with the Erdwärmesonden-Projekt of the Kanton of Zug.

This used to work fine in 3.0x, but fails in both 3.2 and master.

Data-Dump and up-to-date project can be made available.


@qgib
Copy link
Contributor Author

qgib commented Jul 5, 2018

Author Name: Andreas Neumann (@andreasneumann)


  • 12926 was configured as qgis_data_in_embedded_form_missing.png

@qgib
Copy link
Contributor Author

qgib commented Jul 5, 2018

Author Name: Andreas Neumann (@andreasneumann)


Oddly enough, it doesn't happen with every relation reference widget, only with some. Still have to investigate if there are different settings.

In the Kanton Zug EWS example, the issue appears in tab "Eigentümer" and "Heizungsplaner", but not in "Bohrfirma".

@qgib
Copy link
Contributor Author

qgib commented Jul 9, 2018

Author Name: David Signer (@signedav)


I guess, it has nothing to do with the single references (like Eigentümer, Bohrfirma etc.). It has to do what index in the combo is selected. It's only failing when the first value in the combo box is selected (index 0). Can you confirm that?

@qgib
Copy link
Contributor Author

qgib commented Jul 9, 2018

Author Name: Andreas Neumann (@andreasneumann)


I confirm that it is always the first value in the combobox.

However, I don't know why it is at the first entry - because with strict alphabetic ordering (like the rest of the values), it usually wouldn't be at first position.

Also, I checked again in version 3.0x. There, the entries are also at the first position in the combobox (like in master), but the values in the forms are properly displayed.

Something must have changed between 3.0x and 3.2x/master in this respect.

@qgib
Copy link
Contributor Author

qgib commented Jul 9, 2018

Author Name: David Signer (@signedav)


Yes, there has been a change. Checking that out.

@qgib
Copy link
Contributor Author

qgib commented Jul 11, 2018

Author Name: David Signer (@signedav)


See PR #7398

@qgib
Copy link
Contributor Author

qgib commented Jul 23, 2018

Author Name: David Signer (@signedav)


Applied in changeset 4c2e5ff.


  • done_ratio was changed from 0 to 100
  • status_id was changed from Open to Closed

@qgib qgib closed this as completed Jul 23, 2018
@qgib qgib added Bug Either a bug report, or a bug fix. Let's hope for the latter! Forms Regression Something which used to work, but doesn't anymore labels May 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Forms Regression Something which used to work, but doesn't anymore
Projects
None yet
Development

No branches or pull requests

1 participant