Skip to content

Commit

Permalink
[service] form field mapping need to account for form name and field …
Browse files Browse the repository at this point in the history
…name to avoid conflicts
  • Loading branch information
newmanw committed Nov 14, 2024
1 parent a028aaf commit 53d392e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion plugins/arcgis/service/src/ObservationsTransformer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,9 @@ export class ObservationsTransformer {
if (fields != undefined) {
const fieldTitle = fields.get(title)
if (fieldTitle != undefined) {
title = fieldTitle
const sanitizedName = ObservationsTransformer.replaceSpaces(fieldTitle)
const sanitizedFormName = ObservationsTransformer.replaceSpaces(fields.name)
title = `${sanitizedFormName}_${sanitizedName}`.toLowerCase()
}
}
if (field.type == FormFieldType.Geometry) {
Expand Down

0 comments on commit 53d392e

Please sign in to comment.