Following fix for bug #20064 - WFS Update transaction also for version 1.0.0

This commit is contained in:
Uroš 2018-10-24 12:08:49 +02:00
parent daf5394042
commit 980e0b69ea

View File

@ -1071,7 +1071,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" ) );
}