Skip to content

Commit

Permalink
Fix feature attributes not shown in relation form
Browse files Browse the repository at this point in the history
(cherry picked from commit be19006)
  • Loading branch information
mhugent authored and nyalldawson committed Sep 11, 2020
1 parent 493fb2e commit f069d56
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/gui/editorwidgets/qgsrelationreferencewidget.cpp
Expand Up @@ -297,14 +297,14 @@ void QgsRelationReferenceWidget::setForeignKeys( const QVariantList &values )
{
mComboBox->setIdentifierValues( values );

if ( mChainFilters )
if ( mEmbedForm || mChainFilters )
{
QVariant nullValue = QgsApplication::nullRepresentation();

QgsFeatureRequest request = mComboBox->currentFeatureRequest();

mReferencedLayer->getFeatures( request ).nextFeature( mFeature );

}
if ( mChainFilters )
{
QVariant nullValue = QgsApplication::nullRepresentation();
const int count = std::min( mFilterComboBoxes.size(), mFilterFields.size() );
for ( int i = 0; i < count; i++ )
{
Expand Down

0 comments on commit f069d56

Please sign in to comment.