*/
protected $_donorEmail = '';
+ /**
+ * The contributor display name (for emails)
+ *
+ * @var string
+ */
+ protected $_donorDisplayName = '';
+
/**
* Should custom data be suppressed on this form.
*
*/
public $_contactID;
+ /**
+ * The contributor email
+ *
+ * @var string
+ */
+ protected $_donorEmail = '';
+
/**
* Pre-processing for the form.
*
$this->assign('editableScheduleFields', array_diff($this->editableScheduleFields, $alreadyHardCodedFields));
if ($this->_subscriptionDetails->contact_id) {
- [$this->_donorDisplayName, $this->_donorEmail] = CRM_Contact_BAO_Contact::getContactDetails($this->_subscriptionDetails->contact_id);
+ $contactDetails = CRM_Contact_BAO_Contact::getContactDetails($this->_subscriptionDetails->contact_id);
+ $this->_donorEmail = $contactDetails[1];
}
$this->setTitle(ts('Update Recurring Contribution'));