Bug report #14384

Relation reference widget does not set value when referencing a memory layer

Added by Sebastian Dietrich over 8 years ago. Updated over 5 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 #:22365

Description

Tested with master (dec28b4109933b55841053dd72355baac027812a).

How to reproduce:
  • Create a new project
  • Create a memory layer named child with one attribute key
  • Create a memory layer named parent with two attributes, key and value
  • Create a relation with child being the child-layer and parent being the parent layer, linked by key
  • Set the edit widget for key in child to relation reference widget, using the relation created above
  • Add some features to parent
  • Add a feature to child, setting key to one of the features you just added to parent
  • Open the attribute table
  • Note that the feature has a value of NULL in the attribute key, but it should have the value you selected when creating it

When using a shapefile layer for parent instead of a memory layer, everything works as expected.

History

#1 Updated by Giovanni Manghi over 7 years ago

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

#2 Updated by Giovanni Manghi over 5 years ago

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

Also available in: Atom PDF