Skip to content
Permalink
Browse files
[Server] QgsServerFeatureId use combine expression in update feature …
…request

Rather than replace the expression already defined in the feature request, it is better to combine expression in QgsServerFeatureId
  • Loading branch information
rldhont committed Apr 12, 2021
1 parent 17084b8 commit 18c7c6f9b9e34308c7d149b19408755c3d9abf4c
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/server/qgsserverfeatureid.cpp
@@ -59,7 +59,7 @@ QgsFeatureRequest QgsServerFeatureId::updateFeatureRequestFromServerFids( QgsFea

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

return featureRequest;

0 comments on commit 18c7c6f

Please sign in to comment.