Skip to content

Commit

Permalink
fix Manage Case print report duplicate case roles rows
Browse files Browse the repository at this point in the history
  • Loading branch information
alifrumin committed Apr 9, 2019
1 parent 68a3d42 commit 4840999
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CRM/Case/XMLProcessor/Report.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down

0 comments on commit 4840999

Please sign in to comment.