CRM-21187 Fix handling of currency when updating a contribution to be completed.
authoreileen <emcnaughton@wikimedia.org>
Thu, 14 Sep 2017 23:51:47 +0000 (11:51 +1200)
committereileen <emcnaughton@wikimedia.org>
Mon, 18 Sep 2017 21:42:34 +0000 (09:42 +1200)
commit8a40179ed232a6f5c9f1f2acddedf422a9e31b11
treeaed6a913b466b85a4539f61dfdca3c7cc3377138
parentdb3a540818e0535c86363fd678868adf156fcf06
CRM-21187 Fix handling of currency when updating a contribution to be completed.

This is replicable via the api & potentially other flows. The currency id
of NULL is not accepted in financialTrxn BAO without it replacing with a
default, which is not appropriate on an update.
CRM/Contribute/BAO/Contribution.php
CRM/Core/BAO/FinancialTrxn.php
tests/phpunit/api/v3/ContributionTest.php