Skip to content
Permalink
Browse files

Fixing bug #20064 in WFS Update transaction triggering Bad request wh…

…en having more then one Property element change (attribute or geometry field)
  • Loading branch information
uprel committed Oct 9, 2018
1 parent 7c0a2a1 commit d71f85b5682f3306ba2b4e35aaa60ea4801017af
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/server/services/wfs/qgswfstransaction.cpp
@@ -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" ) );
}

0 comments on commit d71f85b

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