Skip to content

Commit

Permalink
Merge pull request #42771 from rldhont/server-feature-id-combine-expr…
Browse files Browse the repository at this point in the history
…ession

[Server] QgsServerFeatureId use combine expression in update feature request
  • Loading branch information
elpaso committed Apr 15, 2021
2 parents 100d2d1 + 18c7c6f commit f93bd65
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/server/qgsserverfeatureid.cpp
Expand Up @@ -59,7 +59,7 @@ QgsFeatureRequest QgsServerFeatureId::updateFeatureRequestFromServerFids( QgsFea


if ( expList.count() == 1 ) if ( expList.count() == 1 )
{ {
featureRequest.setFilterExpression( expList.at( 0 ) ); featureRequest.combineFilterExpression( expList.at( 0 ) );
} }
else else
{ {
Expand All @@ -74,7 +74,7 @@ QgsFeatureRequest QgsServerFeatureId::updateFeatureRequestFromServerFids( QgsFea
fullExpression.append( exp ); fullExpression.append( exp );
fullExpression.append( QStringLiteral( " )" ) ); fullExpression.append( QStringLiteral( " )" ) );
} }
featureRequest.setFilterExpression( fullExpression ); featureRequest.combineFilterExpression( fullExpression );
} }


return featureRequest; return featureRequest;
Expand Down

0 comments on commit f93bd65

Please sign in to comment.