CRM-20876 - ensure honor block variable is passed to template
authorJamie McClelland <jm@mayfirst.org>
Fri, 14 Jul 2017 19:14:14 +0000 (15:14 -0400)
committerJamie McClelland <jm@mayfirst.org>
Fri, 14 Jul 2017 19:14:14 +0000 (15:14 -0400)
Otherwise, it's not on the receipt.

CRM/Contribute/BAO/ContributionPage.php

index f362a07d9a82e077310c3b57d6d69c8344761f9e..41fcca9aaef3bdc12a7701af71b9aee77136d5d4 100644 (file)
@@ -385,6 +385,7 @@ class CRM_Contribute_BAO_ContributionPage extends CRM_Contribute_DAO_Contributio
         'is_pay_later' => $values['is_pay_later'],
         '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),
       );
 
       if ($contributionTypeId = CRM_Utils_Array::value('financial_type_id', $values)) {