Skip to content

Commit

Permalink
Fixing bug #20064 in WFS Update transaction triggering Bad request wh…
Browse files Browse the repository at this point in the history
…en having more then one Property element change (attribute or geometry field)
  • Loading branch information
uprel committed Oct 16, 2018
1 parent 7c0a2a1 commit d71f85b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/server/services/wfs/qgswfstransaction.cpp
Expand Up @@ -1093,7 +1093,7 @@ namespace QgsWfs
typeName = typeName.section( ':', 1, 1 );

QDomNodeList propertyNodeList = actionElem.elementsByTagName( QStringLiteral( "Property" ) );
if ( propertyNodeList.size() != 1 )
if ( propertyNodeList.isEmpty() )
{
throw QgsRequestNotWellFormedException( QStringLiteral( "Update action element must have one or more Property element" ) );
}
Expand Down

0 comments on commit d71f85b

Please sign in to comment.