----------------------------------------
* CRM-14919: Add icon for related contact in listing in the relationship tab
https://issues.civicrm.org/jira/browse/CRM-14919
// 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']}");
.crm-container tr {
font-size: .95em;
- background: none;
+ background: none !important;
}
.crm-container td {