Skip to content

Commit 2daae54

Browse files
committedNov 9, 2017
Attribute Form - value relation widget takes key again instead of value
Corrected: Value relation widget update incorrectly tries to use value instead of key The mapped key has to be set in the return value (not the input value). In the release-2_18 the key was returned correctly but in another structure. So this is corrected now.
1 parent 0ccf6fa commit 2daae54

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/gui/editorwidgets/qgsvaluerelationwidgetwrapper.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ QVariant QgsValueRelationWidgetWrapper::value() const
6666
{
6767
if ( item.value == mLineEdit->text() )
6868
{
69-
v = item.value;
69+
v = item.key;
7070
break;
7171
}
7272
}

0 commit comments

Comments
 (0)
Please sign in to comment.