Bug report #16400

Relation reference widget - filter lists are not refreshed in attribute table form view

Added by Regis Haubourg almost 7 years ago. Updated over 6 years ago.

Status:Closed
Priority:High
Assignee:Matthias Kuhn
Category:Edit widget
Affected QGIS version:2.18.3 Regression?:No
Operating System: Easy fix?:No
Pull Request or Patch supplied:No Resolution:
Crashes QGIS or corrupts data:Yes Copied to github as #:24309

Description

When opening a standalone form, if chained filters were chosen, they are remembered and displayed correctly.
In attribute form view, when switching from one form to another, the filters are not refreshed and stay displayed with the field name, not the chosen value.

I guess some init signals are missing here. (And we suspect that init python scripts are not also loaded in this use case, but it's another bug request )

Please see the gif that show the behavior here https://share.oslandia.net/public/7df0b9 (better to download and display in a browser locally, direct display doesn't seem to work)

Sélection_016.png - before switch (303 KB) Regis Haubourg, 2017-04-25 07:35 AM

Sélection_015.png - after switch value lost (285 KB) Regis Haubourg, 2017-04-25 07:35 AM

Associated revisions

Revision cea7bd39
Added by Paul Blottiere over 6 years ago

Fixes relation reference widget by refreshing filter lists. Fixes #16400

Revision 18c15971
Added by Hugo Mercier over 6 years ago

Merge pull request #5043 from pblottiere/bugfix_refrel

Fixes relation reference widget by refreshing filter lists. Fixes #16400

Revision cb390d7f
Added by Paul Blottiere over 6 years ago

Fixes relation reference widget by refreshing filter lists. Fixes #16400

Revision 6380a97e
Added by Hugo Mercier over 6 years ago

Merge pull request #5045 from pblottiere/bugfix_refrel_218

Fixes relation reference widget by refreshing filter lists. Fixes #16400 (backport)

History

#1 Updated by Regis Haubourg almost 7 years ago

  • File deleted (quote_list.png)

#2 Updated by Regis Haubourg almost 7 years ago

Well, I hadn't seen correctly the problem:

If chain filters is displayed, the real value is not displayed at all in the widget when switching from on feature to another in attribute table view. This is nastier than I thought.

See attached images showing before and after the switch.

#3 Updated by Giovanni Manghi almost 7 years ago

  • Regression? set to No
  • Easy fix? set to No

#4 Updated by Giovanni Manghi over 6 years ago

  • Description updated (diff)
  • Crashes QGIS or corrupts data changed from No to Yes

#5 Updated by Paul Blottiere over 6 years ago

  • % Done changed from 0 to 100
  • Status changed from Open to Closed

Also available in: Atom PDF