Bug report #14384
Relation reference widget does not set value when referencing a memory layer
Status: | Closed | ||
---|---|---|---|
Priority: | Normal | ||
Assignee: | |||
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 attributekey
- Create a memory layer named
parent
with two attributes,key
andvalue
- Create a relation with
child
being the child-layer and parent being the parent layer, linked bykey
- Set the edit widget for
key
inchild
to relation reference widget, using the relation created above - Add some features to
parent
- Add a feature to
child
, settingkey
to one of the features you just added toparent
- Open the attribute table
- Note that the feature has a value of
NULL
in the attributekey
, 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
End of life notice: QGIS 2.18 LTR
Source:
http://blog.qgis.org/2019/03/09/end-of-life-notice-qgis-2-18-ltr/