Skip to content

Commit a755c4e

Browse files
Merge pull request #305 from opencrvs/ocrvs-5952
fix: update template transformers for fields `informantType`, `otherInformantType`
2 parents 7aa4d62 + cc8a914 commit a755c4e

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,7 @@ INSERT CSV ROWS IN ENGLISH ONLY
120120

121121
- Github pipeline dedicated for reading secrets and variables from other environments now checks if GH_TOKEN is still valid before attempting other operations
122122
- Remove unnecessary UI dividers that add in various sections of the declaration forms(e.g the Death, Birth and Marriage forms) [#244](https://github.com/opencrvs/opencrvs-countryconfig/pull/244)
123+
- Update template transformer for fields `informantType` and `otherInformantType` that fixes the bug of unavailability of these template fields [#5952](https://github.com/opencrvs/opencrvs-countryconfig/pull/5952)
123124

124125
## 1.5.2 (https://github.com/opencrvs/opencrvs-countryconfig/compare/v1.5.1...v1.5.2)
125126

src/utils/mapping/field-mapping-utils.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,11 +135,17 @@ export function getFieldMapping(
135135
},
136136
template: {
137137
fieldName: certificateHandlebar,
138-
operation: 'selectTransformer'
138+
operation: 'fieldValueTransformer',
139+
parameters: ['relationship']
139140
}
140141
}
141142
case 'otherInformantType':
142143
return {
144+
template: {
145+
fieldName: certificateHandlebar,
146+
operation: 'fieldValueTransformer',
147+
parameters: ['otherRelationship']
148+
},
143149
mutation: {
144150
operation: 'fieldValueSectionExchangeTransformer',
145151
parameters: ['registration', 'otherInformantType']

0 commit comments

Comments
 (0)