Skip to content

Commit 0356577

Browse files
Merge pull request #306 from opencrvs/auto-pr-release-v1.6.0-305-10839
fix(v1.6.0): update template transformers for fields ,
2 parents ad3ba02 + 2f03a54 commit 0356577

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
@@ -77,6 +77,7 @@ INSERT CSV ROWS IN ENGLISH ONLY
7777

7878
- Github pipeline dedicated for reading secrets and variables from other environments now checks if GH_TOKEN is still valid before attempting other operations
7979
- 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)
80+
- 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)
8081

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

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)