From 0a61e5676909988bc8c3d3c022e50ca52f21f04f Mon Sep 17 00:00:00 2001 From: Monish Deb Date: Fri, 30 Nov 2018 17:46:49 +0530 Subject: [PATCH] dev-core#564: Differentiate case relationships in Contact Summary page --- CRM/Contact/BAO/Relationship.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CRM/Contact/BAO/Relationship.php b/CRM/Contact/BAO/Relationship.php index 9d21c6a4ff..c7f13782d2 100644 --- a/CRM/Contact/BAO/Relationship.php +++ b/CRM/Contact/BAO/Relationship.php @@ -1434,6 +1434,7 @@ LEFT JOIN civicrm_country ON (civicrm_address.country_id = civicrm_country.id) if ($values[$rid]['rtype'] == 'b_a') { $replace['clientid'] = $values[$rid]['cid']; } + $values[$rid]['case'] = ''; } } @@ -2120,7 +2121,7 @@ AND cc.sort_name LIKE '%$name%'"; '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']}"); -- 2.25.1