diff --git a/.github/workflows/build-images-from-branch.yml b/.github/workflows/build-images-from-branch.yml index f9051506d0..b5d03c5f19 100644 --- a/.github/workflows/build-images-from-branch.yml +++ b/.github/workflows/build-images-from-branch.yml @@ -49,11 +49,11 @@ jobs: echo "Pushing version $VERSION" echo "version=$VERSION" >> $GITHUB_OUTPUT if [ "${{ github.event_name }}" == 'push' ]; then - BRANCH=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}} + BRANCH=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}} elif [ "${{ github.event_name }}" == 'pull_request' ]; then - BRANCH=${{ github.event.pull_request.head.ref }} + BRANCH=${{ github.event.pull_request.head.ref }} else - BRANCH=${{ inputs.branch_name }} + BRANCH=${{ inputs.branch_name }} fi ESCAPED_BRANCH=$(echo $BRANCH | sed 's/[^a-zA-Z0-9_.-]/-/g') echo "from branch $BRANCH" diff --git a/CHANGELOG.md b/CHANGELOG.md index 14427acb13..c82080a1f4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -56,6 +56,7 @@ - Fix hardcoded placeholder copy of input when saving a query in advanced search - Handle label params used in form inputs when rendering in action details modal - **Staged files getting reset on precommit hook failure** We were running lint-staged separately on each package using lerna which potentially created a race condition causing staged changes to get lost on failure. Now we are running lint-staged directly without depending on lerna. **_This is purely a DX improvement without affecting any functionality of the system_** +- Fix `informantType` missing in template object which prevented rendering informant relationship data in the certificates [#5952](https://github.com/opencrvs/opencrvs-core/issues/5952) ### Breaking changes diff --git a/packages/client/src/forms/register/mappings/query/field-mappings.ts b/packages/client/src/forms/register/mappings/query/field-mappings.ts index 98b898271e..1628ff15b4 100644 --- a/packages/client/src/forms/register/mappings/query/field-mappings.ts +++ b/packages/client/src/forms/register/mappings/query/field-mappings.ts @@ -109,6 +109,9 @@ export const fieldValueTransformer = sectionId: SectionId, field: IFormField ) => { + if (!(sectionId in transformedData)) { + transformedData[sectionId] = {} + } if (queryData[sectionId] && queryData[sectionId][transformedFieldName]) { transformedData[sectionId][field.name] = queryData[sectionId][transformedFieldName]