From 67e4fb51785babf24f944b31fcc9cf0910825723 Mon Sep 17 00:00:00 2001 From: Nileema Date: Fri, 27 Jun 2014 15:05:32 +0530 Subject: [PATCH] CRM-14919 Add icon for related contact in listing in the relationship tab ---------------------------------------- * CRM-14919: Add icon for related contact in listing in the relationship tab https://issues.civicrm.org/jira/browse/CRM-14919 --- CRM/Contact/BAO/Relationship.php | 9 ++++++++- css/civicrm.css | 2 +- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/CRM/Contact/BAO/Relationship.php b/CRM/Contact/BAO/Relationship.php index e963c3d178..cff60bccbb 100644 --- a/CRM/Contact/BAO/Relationship.php +++ b/CRM/Contact/BAO/Relationship.php @@ -1705,7 +1705,14 @@ AND cc.sort_name LIKE '%$name%'"; // format params foreach ($relationships as $relationshipId => $values) { - $contactRelationships[$relationshipId]['name'] = CRM_Utils_System::href( + //Add image icon for related contacts: CRM-14919 + $subType = CRM_Contact_BAO_Contact::getContactSubType($values['cid']); + $cType = CRM_Contact_BAO_Contact::getContactType($values['cid']); + $icon = CRM_Contact_BAO_Contact_Utils::getImage($subType ? $subType : $cType, + FALSE, + $values['cid'] + ); + $contactRelationships[$relationshipId]['name'] = $icon.' '.CRM_Utils_System::href( $values['name'], 'civicrm/contact/view', "reset=1&cid={$values['cid']}"); diff --git a/css/civicrm.css b/css/civicrm.css index 0d69e51b21..cd3980744c 100644 --- a/css/civicrm.css +++ b/css/civicrm.css @@ -107,7 +107,7 @@ div.crm-container fieldset label{ .crm-container tr { font-size: .95em; - background: none; + background: none !important; } .crm-container td { -- 2.25.1