diff --git a/CHANGELOG.md b/CHANGELOG.md index 2d17dd3b7..40aba67f9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -120,6 +120,7 @@ INSERT CSV ROWS IN ENGLISH ONLY - Github pipeline dedicated for reading secrets and variables from other environments now checks if GH_TOKEN is still valid before attempting other operations - 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) +- 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) ## 1.5.2 (https://github.com/opencrvs/opencrvs-countryconfig/compare/v1.5.1...v1.5.2) diff --git a/src/utils/mapping/field-mapping-utils.ts b/src/utils/mapping/field-mapping-utils.ts index a4a4451ae..25f9200e6 100644 --- a/src/utils/mapping/field-mapping-utils.ts +++ b/src/utils/mapping/field-mapping-utils.ts @@ -135,11 +135,17 @@ export function getFieldMapping( }, template: { fieldName: certificateHandlebar, - operation: 'selectTransformer' + operation: 'fieldValueTransformer', + parameters: ['relationship'] } } case 'otherInformantType': return { + template: { + fieldName: certificateHandlebar, + operation: 'fieldValueTransformer', + parameters: ['otherRelationship'] + }, mutation: { operation: 'fieldValueSectionExchangeTransformer', parameters: ['registration', 'otherInformantType']