diff --git a/CRM/Case/XMLProcessor/Report.php b/CRM/Case/XMLProcessor/Report.php index aa0b6c0b5215..bc7c47e85493 100644 --- a/CRM/Case/XMLProcessor/Report.php +++ b/CRM/Case/XMLProcessor/Report.php @@ -824,8 +824,8 @@ public static function printCaseReport() { $xmlProcessor = new CRM_Case_XMLProcessor_Process(); $caseRoles = $xmlProcessor->get($caseType, 'CaseRoles'); foreach ($caseRelationships as $key => & $value) { - if (!empty($caseRoles[$value['relation_type']])) { - unset($caseRoles[$value['relation_type']]); + if (!empty($caseRoles[$value['relation_type'] . '_' . $value['relationship_direction']])) { + unset($caseRoles[$value['relation_type'] . '_' . $value['relationship_direction']]); } if ($isRedact) { if (!array_key_exists($value['name'], $report->_redactionStringRules)) {