Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix typo in error message (and related tests)
  • Loading branch information
elpaso committed Jan 24, 2019
1 parent 3eb388a commit 33788c9
Show file tree
Hide file tree
Showing 4 changed files with 488 additions and 488 deletions.
2 changes: 1 addition & 1 deletion src/server/services/wfs/qgswfstransaction_1_0_0.cpp
Expand Up @@ -393,7 +393,7 @@ namespace QgsWfs
if ( field.constraints().constraints() & QgsFieldConstraints::Constraint::ConstraintNotNull )
{
action.error = true;
action.errorMsg = QStringLiteral( "NOT NULL constraint error error on layer '%1', field '%2'" ).arg( typeName, field.name() );
action.errorMsg = QStringLiteral( "NOT NULL constraint error on layer '%1', field '%2'" ).arg( typeName, field.name() );
vlayer->rollBack();
break;
}
Expand Down
2 changes: 1 addition & 1 deletion tests/src/python/test_qgsserver_wfs.py
Expand Up @@ -515,7 +515,7 @@ def _round_trip(value, field, version='1.1.0'):
self.assertTrue(b'<ERROR/>' in body, body)
else:
self.assertTrue(b'<TotalUpdated>0</TotalUpdated>' in body)
self.assertTrue(b'<Message>NOT NULL constraint error error on layer \'cdb_lines\', field \'name\'</Message>' in body)
self.assertTrue(b'<Message>NOT NULL constraint error on layer \'cdb_lines\', field \'name\'</Message>' in body, body)


if __name__ == '__main__':
Expand Down
Binary file modified tests/testdata/qgis_server/test_project_wms_grouped_layers.gpkg
Binary file not shown.

0 comments on commit 33788c9

Please sign in to comment.