Skip to content

Commit d71f85b

Browse files
committed
Fixing bug #20064 in WFS Update transaction triggering Bad request when having more then one Property element change (attribute or geometry field)
1 parent 7c0a2a1 commit d71f85b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/server/services/wfs/qgswfstransaction.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1093,7 +1093,7 @@ namespace QgsWfs
10931093
typeName = typeName.section( ':', 1, 1 );
10941094

10951095
QDomNodeList propertyNodeList = actionElem.elementsByTagName( QStringLiteral( "Property" ) );
1096-
if ( propertyNodeList.size() != 1 )
1096+
if ( propertyNodeList.isEmpty() )
10971097
{
10981098
throw QgsRequestNotWellFormedException( QStringLiteral( "Update action element must have one or more Property element" ) );
10991099
}

0 commit comments

Comments
 (0)