Skip to content
Permalink
Browse files

Reverted to original code

  • Loading branch information
elpaso committed Nov 4, 2015
1 parent 35d0982 commit 1627d510c5afddbb6c0159869baa645fc26e2c7a
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/core/qgsrelation.cpp
@@ -194,12 +194,12 @@ QgsFeatureRequest QgsRelation::getReferencedFeatureRequest( const QgsAttributes&
if ( referencedField.type() == QVariant::String )
{
// Use quotes
conditions << QString( "\"%1\" = '%2'" ).arg( fieldPair.referencedField(), attributes.at( referencedIdx ).toString() );
conditions << QString( "\"%1\" = '%2'" ).arg( fieldPair.referencedField(), attributes.at( referencingIdx ).toString() );
}
else
{
// No quotes
conditions << QString( "\"%1\" = %2" ).arg( fieldPair.referencedField(), attributes.at( referencedIdx ).toString() );
conditions << QString( "\"%1\" = %2" ).arg( fieldPair.referencedField(), attributes.at( referencingIdx ).toString() );
}
}

0 comments on commit 1627d51

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