Skip to content
Permalink
Browse files

Fix feature attributes not shown in relation form

(cherry picked from commit be19006)
  • Loading branch information
mhugent authored and nyalldawson committed Sep 11, 2020
1 parent 493fb2e commit f069d56728970716ae4780d3864a3e4fa4889e30
Showing with 5 additions and 5 deletions.
  1. +5 −5 src/gui/editorwidgets/qgsrelationreferencewidget.cpp
@@ -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++ )
{

0 comments on commit f069d56

Please sign in to comment.
You can’t perform that action at this time.