Payment instrument ID is not required at processorform level
authorMatthew Wire <mjw@mjwconsult.co.uk>
Fri, 5 Jun 2020 09:42:04 +0000 (10:42 +0100)
committerMatthew Wire <mjw@mjwconsult.co.uk>
Fri, 5 Jun 2020 10:01:25 +0000 (11:01 +0100)
CRM/Core/Payment/ProcessorForm.php

index 3f927557b0bd819fb2d4570d931dfd7f1bd21710..1649fa333a13808506041219b25f3fdbaef3ce52 100644 (file)
@@ -139,7 +139,7 @@ class CRM_Core_Payment_ProcessorForm {
     if (!empty($processorId)) {
       $form->addElement('hidden', 'hidden_processor', 1);
     }
-    CRM_Core_Payment_Form::buildPaymentForm($form, $form->_paymentProcessor, $billing_profile_id, $form->isBackOffice, $form->paymentInstrumentID);
+    CRM_Core_Payment_Form::buildPaymentForm($form, $form->_paymentProcessor, $billing_profile_id, $form->isBackOffice, $form->paymentInstrumentID ?? NULL);
   }
 
 }