Skip to content

Commit

Permalink
Merge pull request #305 from opencrvs/ocrvs-5952
Browse files Browse the repository at this point in the history
fix: update template transformers for fields `informantType`, `otherInformantType`
  • Loading branch information
tahmidrahman-dsi authored Oct 30, 2024
2 parents 7aa4d62 + cc8a914 commit a755c4e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
8 changes: 7 additions & 1 deletion src/utils/mapping/field-mapping-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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']
Expand Down

0 comments on commit a755c4e

Please sign in to comment.