diff --git a/hrm-form-definitions/form-definitions/zm/v1/tabbedForms/CaseInformationTab.json b/hrm-form-definitions/form-definitions/zm/v1/tabbedForms/CaseInformationTab.json index 4f5c144a6e..c5a9be30a2 100644 --- a/hrm-form-definitions/form-definitions/zm/v1/tabbedForms/CaseInformationTab.json +++ b/hrm-form-definitions/form-definitions/zm/v1/tabbedForms/CaseInformationTab.json @@ -26,7 +26,7 @@ { "value": "Referrals to school counsellors", "label": "Referrals to school counsellors" }, { "value": "Reports to Child Sexual Abuse Material", "label": "Reports to Child Sexual Abuse Material" }, { "value": "Reports to PSEA point person", "label": "Reports to PSEA point person" }, - {"value": "One Stop Centres"}, + { "value": "One Stop Centres", "label": "One Stop Centres" }, { "value": "Other", "label": "Other" } ] }, diff --git a/plugin-hrm-form/src/components/case/ViewCaseItem.tsx b/plugin-hrm-form/src/components/case/ViewCaseItem.tsx index 4d9663f643..4d39fd63ce 100644 --- a/plugin-hrm-form/src/components/case/ViewCaseItem.tsx +++ b/plugin-hrm-form/src/components/case/ViewCaseItem.tsx @@ -104,7 +104,7 @@ const ViewCaseItem: React.FC = ({ }; const targetObject: FormTargetObject = { - id: currentRoute.id, + id: currentRoute.caseId, type: 'case', }; diff --git a/plugin-hrm-form/src/maskIdentifiers/index.ts b/plugin-hrm-form/src/maskIdentifiers/index.ts index 7ce4c1331d..f57191aa2e 100644 --- a/plugin-hrm-form/src/maskIdentifiers/index.ts +++ b/plugin-hrm-form/src/maskIdentifiers/index.ts @@ -76,6 +76,7 @@ export const maskManagerStringsWithIdentifiers = & { export const maskMessageListWithIdentifiers = () => { const can = getInitializedCan(); const maskIdentifiers = !can(PermissionActions.VIEW_IDENTIFIERS); + if (!maskIdentifiers) return; MessagingCanvas.defaultProps.memberDisplayOptions = { @@ -83,5 +84,7 @@ export const maskMessageListWithIdentifiers = () => { theirFriendlyNameOverride: false, yourFriendlyNameOverride: true, }; - MessageList.Content.remove('0'); + MessageList.Content.remove('0', { + if: ({ conversation }) => conversation?.source?.attributes?.channel_type === 'web', + }); };