Skip to content
Snippets Groups Projects
Commit 1cf64d74 authored by mattwire's avatar mattwire
Browse files

Merge branch 'currencyfix' into 'master'

Fix currency submitted on the form

See merge request extensions/mjwshared!1
parents 24bfae82 ee30a593
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