Skip to content

Commit f8dccf8

Browse files
committed
Fix on map identification on relation reference widget with complex PK
References #14882
1 parent e80e541 commit f8dccf8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/gui/editorwidgets/qgsrelationreferencewidget.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -749,7 +749,7 @@ void QgsRelationReferenceWidget::featureIdentified( const QgsFeature& feature )
749749
}
750750
else
751751
{
752-
mComboBox->setCurrentIndex( mComboBox->findData( feature.attribute( mReferencedFieldIdx ), QgsAttributeTableModel::FeatureIdRole ) );
752+
mComboBox->setCurrentIndex( mComboBox->findData( feature.id(), QgsAttributeTableModel::FeatureIdRole ) );
753753
mFeature = feature;
754754
}
755755

0 commit comments

Comments
 (0)