Skip to content

Commit

Permalink
Merge pull request #7854 from opencrvs/ocrvs-5952
Browse files Browse the repository at this point in the history
fix(ocrvs-5952): `informantType` in handlebars template object
  • Loading branch information
tahmidrahman-dsi authored Oct 29, 2024
2 parents 465c68b + 96e9423 commit a55dd49
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build-images-from-branch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit a55dd49

Please sign in to comment.