Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #38251 from mhugent/relation_form_fix_attributes_n…
…ot_shown

Fix feature attributes not shown in relation form
  • Loading branch information
mhugent committed Aug 17, 2020
2 parents a5461a6 + be19006 commit 040b18a
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/gui/editorwidgets/qgsrelationreferencewidget.cpp
Expand Up @@ -303,14 +303,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 040b18a

Please sign in to comment.