Set currency template variable from contribution pages
authoreileen <emcnaughton@wikimedia.org>
Mon, 26 Nov 2018 08:58:23 +0000 (21:58 +1300)
committereileen <emcnaughton@wikimedia.org>
Mon, 26 Nov 2018 09:01:12 +0000 (22:01 +1300)
commitd02c64180a9514c39f3fca0369bcdf4b7f43d93a
tree4e383b54ba61b3295df7bf8b38caf4f24d989acd
parent116d9f2314af6564f90206980da67d733f2ce9dd
Set currency template variable from contribution pages

When we load the PaymentForm the currency is set there and assigned to the template.

However, if the form doesn't load by default (ie because there is no payment processor selected by
default) the currency variable is not assigned to the template.

When the payment form is loaded by
      var dataUrl = '{crmURL p='civicrm/payment/form' h=0 q=formName=
CRM/Contribute/Form/ContributionBase.php
CRM/Core/Payment/ProcessorForm.php