Fix offline contribution page handling of money fields
authorEileen McNaughton <emcnaughton@wikimedia.org>
Fri, 27 Oct 2023 02:21:38 +0000 (15:21 +1300)
committerEileen McNaughton <emcnaughton@wikimedia.org>
Sun, 29 Oct 2023 20:56:36 +0000 (09:56 +1300)
commit4e6d5b1266b8eb98baedb4d865f46b3e8bf24e08
treed0487d3771c8d6455233a2ef615572922b63944b
parent4f9636ed47b1731f1a94a96f62798fd705276e50
Fix offline contribution page handling of money fields

Fixes Offline contribution page so this fix
https://github.com/civicrm/civicrm-core/pull/27917
works for it too.

Note the 2 changes on total_amount are just tidy ups to remove redundancy - but
double cleaning can also cause breakage...

I prefer to use getSubmittedValue() whereever possible
because it makes it clear we are using the user-submitted
value not some value wrangled into an array along the way
CRM/Contribute/Form/Contribution.php