Skip to content

Commit

Permalink
Merge pull request #17 from mattwire/fixcasecontactid
Browse files Browse the repository at this point in the history
Fix contact ID for link to case
  • Loading branch information
bjendres authored Apr 9, 2020
2 parents c2aadf2 + b8f91d8 commit e72f4a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CRM/Fastactivity/BAO/Activity.php
Original file line number Diff line number Diff line change
Expand Up @@ -547,7 +547,7 @@ private static function formatCaseLink($contactId, $caseId) {
));
$label = "ID: {$caseId}<br />({$contactName})";
}
$url = CRM_Utils_System::url('civicrm/contact/view/case', "reset=1&id={$caseId}&cid={$contactId}&action=view");
$url = CRM_Utils_System::url('civicrm/contact/view/case', "reset=1&id={$caseId}&cid={$firstCaseContactId}&action=view");
$html = "<a href='$url' class='action-item crm-hover-button no-popup' target='_blank'>{$label}</a>";
return $html;
}
Expand Down

0 comments on commit e72f4a1

Please sign in to comment.