Skip to content

Commit

Permalink
Merge pull request #13189 from JMAConsulting/core-564
Browse files Browse the repository at this point in the history
dev-core#564: Differentiate case relationships in Contact Summary page
  • Loading branch information
seamuslee001 authored Jan 2, 2019
2 parents aaa8f31 + 0a61e56 commit 416569e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion CRM/Contact/BAO/Relationship.php
Original file line number Diff line number Diff line change
Expand Up @@ -1434,6 +1434,7 @@ public static function getRelationship(
if ($values[$rid]['rtype'] == 'b_a') {
$replace['clientid'] = $values[$rid]['cid'];
}
$values[$rid]['case'] = '<a href="' . CRM_Utils_System::url('civicrm/case/ajax/details', sprintf('caseId=%d&cid=%d&snippet=4', $values[$rid]['case_id'], $values[$rid]['cid'])) . '" class="action-item crm-hover-button crm-summary-link"><i class="crm-i fa-folder-open-o"></i></a>';
}
}

Expand Down Expand Up @@ -2120,7 +2121,7 @@ public static function getContactRelationshipSelector(&$params) {
'civicrm/contact/view',
"reset=1&cid={$values['cid']}");

$relationship['relation'] = CRM_Utils_System::href(
$relationship['relation'] = CRM_Utils_Array::value('case', $values, '') . CRM_Utils_System::href(
$values['relation'],
'civicrm/contact/view/rel',
"action=view&reset=1&cid={$values['cid']}&id={$values['id']}&rtype={$values['rtype']}");
Expand Down

0 comments on commit 416569e

Please sign in to comment.