Skip to content
Snippets Groups Projects
Commit bc3062bd authored by Dave Greenberg's avatar Dave Greenberg
Browse files

Merge pull request #2450 from davecivicrm/CRM-13833b

CRM-13833 - Add contact summary link to soft credit contacts in Soft Cre...
parents 5efb95d7 e1ea3ee3
No related branches found
No related tags found
No related merge requests found
......@@ -506,6 +506,18 @@ GROUP BY {$this->_aliases['civicrm_contribution']}.currency
$entryFound = TRUE;
}
// convert soft credit contact name to link
if (array_key_exists('civicrm_contact_display_name_creditor', $row) && !empty($rows[$rowNum]['civicrm_contact_display_name_creditor']) &&
array_key_exists('civicrm_contact_id_creditor', $row)
) {
$url = CRM_Utils_System::url("civicrm/contact/view",
'reset=1&cid=' . $row['civicrm_contact_id_creditor'],
$this->_absoluteUrl
);
$rows[$rowNum]['civicrm_contact_display_name_creditor_link'] = $url;
$rows[$rowNum]['civicrm_contact_display_name_creditor_hover'] = ts("view contact summary");
}
// make subtotals look nicer
if (array_key_exists('civicrm_contact_id_constituent', $row) &&
!$row['civicrm_contact_id_constituent']
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment