Commit 3b28799d authored by eileen's avatar eileen

CRM-20990 add to online template

parent 51fb7e5f
......@@ -4812,6 +4812,7 @@ LIMIT 1;";
if (!$returnMessageText) {
list($values['receipt_from_name'], $values['receipt_from_email']) = self::generateFromEmailAndName($input, $contribution);
}
$values['contribution_status'] = CRM_Core_PseudoConstant::getLabel('CRM_Contribute_BAO_Contribution', 'contribution_status_id', $contribution->contribution_status_id);
$return = $contribution->composeMessageArray($input, $ids, $values, $returnMessageText);
// Contribution ID should really always be set. But ?
if (!$returnMessageText && (!isset($input['receipt_update']) || $input['receipt_update']) && empty($contribution->receipt_date)) {
......
......@@ -386,6 +386,7 @@ class CRM_Contribute_BAO_ContributionPage extends CRM_Contribute_DAO_Contributio
'receipt_date' => !$values['receipt_date'] ? NULL : date('YmdHis', strtotime($values['receipt_date'])),
'pay_later_receipt' => CRM_Utils_Array::value('pay_later_receipt', $values),
'honor_block_is_active' => CRM_Utils_Array::value('honor_block_is_active', $values),
'contributionStatus' => CRM_Utils_Array::value('contribution_status', $values),
);
if ($contributionTypeId = CRM_Utils_Array::value('financial_type_id', $values)) {
......
......@@ -1741,6 +1741,7 @@ class api_v3_ContributionTest extends CiviUnitTestCase {
'contributeMode:::notify',
'title:::Contribution',
'displayName:::Mr. Anthony Anderson II',
'contributionStatus:::Completed',
));
$mut->stop();
$this->revertTemplateToReservedTemplate();
......
......@@ -61,6 +61,7 @@
price:::{$price}
customPre_grouptitle:::{$customPre_grouptitle}
customPost_grouptitle:::{$customPost_grouptitle}
contributionStatus:::{$contributionStatus}
{foreach from=$lineItem item=value key=priceset}
{foreach from=$value item=line}
line.html_type:::{$line.html_type}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment