Skip to content
Permalink
Browse files
[Server] WFS Transaction fix update
  • Loading branch information
rldhont committed Apr 10, 2017
1 parent 6298cdd commit 946f7eeb9520932b2a4c16653c204d084be3d302
Showing with 5 additions and 1 deletion.
  1. +1 −1 src/server/services/wfs/qgswfstransaction.cpp
  2. +4 −0 src/server/services/wfs/qgswfsutils.cpp
@@ -1096,7 +1096,7 @@ namespace QgsWfs

QDomNodeList filterNodeList = actionElem.elementsByTagName( QStringLiteral( "Filter" ) );
QgsFeatureRequest featureRequest;
if ( filterNodeList.size() != 1 )
if ( filterNodeList.size() != 0 )
{
QDomElement filterElem = filterNodeList.at( 0 ).toElement();
featureRequest = parseFilterElement( typeName, filterElem );
@@ -88,6 +88,10 @@ namespace QgsWfs
{
request.setFilterFids( fids );
}
else
{
throw QgsRequestNotWellFormedException( QStringLiteral( "No FeatureId element corrcetly parse against typeName '%1'" ).arg( typeName ) );
}
request.setFlags( QgsFeatureRequest::NoFlags );
return request;
}

0 comments on commit 946f7ee

Please sign in to comment.