$defaults['campaign_id'] = $this->_pledgeValues['campaign_id'];
}
+ $billing_address = '';
+ if (!empty($defaults['address_id'])) {
+ $addressDetails = CRM_Core_BAO_Address::getValues(['id' => $defaults['address_id']], FALSE, 'id');
+ $addressDetails = array_values($addressDetails);
+ $billing_address = $addressDetails[0]['display'];
+ }
+ $this->assign('billing_address', $billing_address);
+
$this->_defaults = $defaults;
return $defaults;
}
{/foreach}
</div>
{/if}
+ {if $billing_address}
+ <fieldset>
+ <legend>{ts}Billing Address{/ts}</legend>
+ <div class="form-item">
+ {$billing_address|nl2br}
+ </div>
+ </fieldset>
+ {/if}
<br />
<div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="bottom"}</div>
</div>