Skip to content

Commit 53d392e

Browse files
committed
[service] form field mapping need to account for form name and field name to avoid conflicts
1 parent a028aaf commit 53d392e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

plugins/arcgis/service/src/ObservationsTransformer.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,9 @@ export class ObservationsTransformer {
328328
if (fields != undefined) {
329329
const fieldTitle = fields.get(title)
330330
if (fieldTitle != undefined) {
331-
title = fieldTitle
331+
const sanitizedName = ObservationsTransformer.replaceSpaces(fieldTitle)
332+
const sanitizedFormName = ObservationsTransformer.replaceSpaces(fields.name)
333+
title = `${sanitizedFormName}_${sanitizedName}`.toLowerCase()
332334
}
333335
}
334336
if (field.type == FormFieldType.Geometry) {

0 commit comments

Comments
 (0)