Unverified Commit f1506d9e authored by eileen's avatar eileen 🎱 Committed by GitHub

Merge pull request #11427 from eileenmcnaughton/no_money_honey

CRM-21445 ensure pay_later processor is set so we do not get a fatal …
parents c6215dbd 9a7ba24d
......@@ -292,7 +292,7 @@ class CRM_Contribute_Form_Contribution_Confirm extends CRM_Contribute_Form_Contr
// lineItem isn't set until Register postProcess
$this->_lineItem = $this->get('lineItem');
$this->_ccid = $this->get('ccid');
$this->_paymentProcessor = $this->get('paymentProcessor');
$this->_params = $this->controller->exportValues('Main');
$this->_params['ip_address'] = CRM_Utils_System::ipAddress();
$this->_params['amount'] = $this->get('amount');
......
......@@ -294,6 +294,9 @@ class CRM_Contribute_Form_ContributionBase extends CRM_Core_Form {
$this->_fields = $this->get('fields');
$this->_bltID = $this->get('bltID');
$this->_paymentProcessor = $this->get('paymentProcessor');
if (!$this->_paymentProcessor) {
$this->_paymentProcessor = array('object' => Civi\Payment\System::singleton()->getById(0));
}
$this->_priceSetId = $this->get('priceSetId');
$this->_priceSet = $this->get('priceSet');
......
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