Skip to content
Snippets Groups Projects
Commit ee30a593 authored by jitendra's avatar jitendra
Browse files

Fix currency submitted on the form

parent 24bfae82
No related branches found
No related tags found
No related merge requests found
......@@ -178,6 +178,10 @@ trait CRM_Core_Payment_MJWTrait {
public function getDefaultCurrencyForForm($form) {
// For contribution pages it is in $form->_values
$currency = CRM_Utils_Array::value('currency', $form->_values);
if (!$currency && is_a($form, 'CRM_Financial_Form_Payment')) {
$currency = $form->getVar('currency');
}
if (!$currency) {
// For event pages it is in $form->_values['event']
if (isset($form->_values['event'])) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment