Bug report #13970

Relation reference widget does not retain values

Added by Grga Franges about 9 years ago. Updated almost 6 years ago.

Status:Closed
Priority:Normal
Assignee:Matthias Kuhn
Category:Relations
Affected QGIS version:master Regression?:No
Operating System: Easy fix?:No
Pull Request or Patch supplied:No Resolution:end of life
Crashes QGIS or corrupts data:No Copied to github as #:21984

Description

After a relation reference widget is filled, form closed and layer edits saved, the id of related feature is saved in the attribute table. But, on additional opening of the form, relation reference widget is not filled with correct values, instead showing the last entry in the parent relation.
This defeats the whole purpose of the widget.
If i remember correctly this was working fine in the 2.10 but i cannot confirm because i no longer have it installed.
I'm enclosing screenshots:
- on "before" image the value is entered. Coresponding id (14) is saved in the attribute table.
- on "after" image the form is reopened and the relation reference widget loads the data for last entry in parent reference (id: 27)

before.png (77.9 KB) Grga Franges, 2015-12-10 02:44 AM

after.png (77.2 KB) Grga Franges, 2015-12-10 02:44 AM

QgisRelationWidgetNull.PNG (11.8 KB) Sebastian Dietrich, 2016-02-25 02:34 PM


Related issues

Related to QGIS Application - Bug report #14162: Cannot set parent to NULL in relation reference widget Closed 2016-01-24

History

#1 Updated by Grga Franges almost 9 years ago

  • Assignee set to Matthias Kuhn

#2 Updated by Sebastian Dietrich almost 9 years ago

  • Affected QGIS version changed from 2.12.0 to master
  • Operating System deleted (Windows)
  • Category changed from Forms to Relations
  • File QgisRelationWidgetNull.PNG added

The behaviour seems to have changed from showing the last entry to showing the NULL entry.

#3 Updated by Giovanni Manghi over 7 years ago

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

#4 Updated by Giovanni Manghi almost 6 years ago

  • Status changed from Open to Closed
  • Resolution set to end of life

Also available in: Atom PDF