Skip to content

Commit 3c1d60f

Browse files
authored
Allow booleanTransformer to be used as a certificate handlebar template transformer (#9632)
1 parent 7bd1759 commit 3c1d60f

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66

77
### Bug fixes
88

9+
- Allow booleanTransformer to be used as a certificate handlebar template transformer [#9631](https://github.com/opencrvs/opencrvs-core/issues/9631)
910
- Fix international to local number conversion from failing if the number was already local [#9634](https://github.com/opencrvs/opencrvs-core/issues/9634)
1011

1112
## [1.7.2](https://github.com/opencrvs/opencrvs-core/compare/v1.7.1...v1.7.2)

packages/client/src/forms/register/mappings/query/field-mappings.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -600,6 +600,9 @@ export const booleanTransformer = (
600600
sectionId: SectionId,
601601
field: IFormField
602602
) => {
603+
if (!transformedData[sectionId]) {
604+
transformedData[sectionId] = {}
605+
}
603606
// graphql boolean ignored unless forced like this
604607
if (queryData && queryData[sectionId] && field && field.name) {
605608
transformedData[sectionId][field.name] = queryData[sectionId][field.name]

0 commit comments

Comments
 (0)