Cast to float when setting overrideTotalAmount
authorEileen McNaughton <emcnaughton@wikimedia.org>
Tue, 27 Jul 2021 08:51:10 +0000 (20:51 +1200)
committerEileen McNaughton <emcnaughton@wikimedia.org>
Tue, 27 Jul 2021 08:51:10 +0000 (20:51 +1200)
commit2df49c859d77fcd2ee073fe14f39f2b4c792ebb9
tree63400556059f52151e83e9f470804cf0c013f82a
parent403b0324b35193dc0aacaae9b7047cb86a5d1f74
Cast to float when setting overrideTotalAmount

This is a regression in master whereby submitting a new contribution and leaving total_amount empty
causes a fatal before it can get to the validation error - back office contribution form
CRM/Batch/Form/Entry.php
CRM/Contribute/Form/Contribution.php
CRM/Contribute/Form/Contribution/Confirm.php