We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
qgis
Learn more about funding links in repositories.
Report abuse
There was an error while loading. Please reload this page.
1 parent 8abc892 commit b1ac56bCopy full SHA for b1ac56b
src/gui/editorwidgets/qgsrelationreferencewidget.cpp
@@ -357,18 +357,7 @@ QVariant QgsRelationReferenceWidget::foreignKey() const
357
}
358
else
359
{
360
- if ( mReferencingFieldIdx < 0 || mReferencingFieldIdx >= mReferencingLayer->fields().count() )
361
- {
362
- return QVariant();
363
- }
364
- else if ( !mFeature.isValid() )
365
366
- return QVariant( mReferencingLayer->fields().at( mReferencingFieldIdx ).type() );
367
368
- else
369
370
- return mFeature.attribute( mReferencedFieldIdx );
371
+ return mComboBox->identifierValue();
372
373
374
0 commit comments