diff --git a/CRM/Core/Payment/ProcessorForm.php b/CRM/Core/Payment/ProcessorForm.php index 1cab78655c2a..720dae52253b 100644 --- a/CRM/Core/Payment/ProcessorForm.php +++ b/CRM/Core/Payment/ProcessorForm.php @@ -72,7 +72,12 @@ public static function preProcess(&$form, $type = NULL, $mode = NULL) { $form->assign('suppressSubmitButton', $form->_paymentObject->isSuppressSubmitButtons()); - $form->assign('currency', CRM_Utils_Array::value('currency', $form->_values)); + $currency = CRM_Utils_Array::value('currency', $form->_values); + // For event forms, currency is in a different spot + if (empty($currency)) { + $currency = CRM_Utils_Array::value('currency', $form->_values['event']); + } + $form->assign('currency', $currency); // also set cancel subscription url if (!empty($form->_paymentProcessor['is_recur']) && !empty($form->_values['is_recur'])) {