Remove unusable assigns (copy & paste I believe)
authorEileen McNaughton <emcnaughton@wikimedia.org>
Thu, 27 Jul 2023 23:47:59 +0000 (11:47 +1200)
committerEileen McNaughton <emcnaughton@wikimedia.org>
Thu, 27 Jul 2023 23:48:46 +0000 (11:48 +1200)
CRM/Contribute/Form/Contribution/Main.php

index d8c99607608c3667e0170f46297de5b9695f06a0..d15c39c8a4cb1cdf1478d11abfc1706779244906 100644 (file)
@@ -1235,11 +1235,6 @@ class CRM_Contribute_Form_Contribution_Main extends CRM_Contribute_Form_Contribu
 
     // Would be nice to someday understand the point of this set.
     $this->set('is_pay_later', $params['is_pay_later']);
-    // assign pay later stuff
-    $this->_params['is_pay_later'] = $params['is_pay_later'];
-    $this->assign('is_pay_later', $params['is_pay_later']);
-    $this->assign('pay_later_text', $params['is_pay_later'] ? $this->_values['pay_later_text'] : NULL);
-    $this->assign('pay_later_receipt', ($params['is_pay_later'] && isset($this->_values['pay_later_receipt'])) ? $this->_values['pay_later_receipt'] : NULL);
 
     if ($this->_membershipBlock && $this->_membershipBlock['is_separate_payment'] && !empty($params['separate_amount'])) {
       $this->set('amount', $params['separate_amount']);