CRM_Core_BAO_CustomGroup::buildCustomDataView($this, $groupTree, FALSE, NULL, NULL, NULL, $contributionRecur['id']);
$this->assign('recur', $contributionRecur);
+
+ $displayName = CRM_Contact_BAO_Contact::displayName($contributionRecur['contact_id']);
+ $this->assign('displayName', $displayName);
+
+ // Check if this is default domain contact CRM-10482
+ if (CRM_Contact_BAO_Contact::checkDomainContact($contributionRecur['contact_id'])) {
+ $displayName .= ' (' . ts('default organization') . ')';
+ }
+
+ // omitting contactImage from title for now since the summary overlay css doesn't work outside of our crm-container
+ CRM_Utils_System::setTitle(ts('View Recurring Contribution from') . ' ' . $displayName);
}
public function preProcess() {
<strong>{ts}This is a TEST transaction{/ts}</strong>
</div>
{/if}
- <h3>{ts}View Recurring Payment{/ts}</h3>
<div class="crm-block crm-content-block crm-recurcontrib-view-block">
<table class="crm-info-panel">
+ <tr>
+ <td class="label">{ts}From{/ts}</td>
+ <td class="bold"><a href="{crmURL p='civicrm/contact/view' q="cid=`$recur.contact_id`"}">{$displayName}</a></td>
+ </tr>
<tr><td class="label">{ts}Amount{/ts}</td><td>{$recur.amount|crmMoney:$recur.currency}{if $is_test} ({ts}test{/ts}){/if}</td></tr>
<tr><td class="label">{ts}Frequency{/ts}</td><td>every {$recur.frequency_interval} {$recur.frequency_unit}</td></tr>
<tr><td class="label">{ts}Installments{/ts}</td><td>{$recur.installments}</td></tr>