[REF] Extract & stdise AmountBlockIsActive
authorEileen McNaughton <emcnaughton@wikimedia.org>
Tue, 21 Dec 2021 21:48:30 +0000 (10:48 +1300)
committerEileen McNaughton <emcnaughton@wikimedia.org>
Thu, 10 Feb 2022 02:07:26 +0000 (15:07 +1300)
commit1bec3b51fa2a2022bb0a8c9aa17cc4b48f9d6ac3
treeb8af358cc0606616d3fb52a35a11ae2d5c545cf2
parent0ee4cba794e336554e7ce88ab540b3664543b6f8
[REF] Extract & stdise AmountBlockIsActive

It took me a bit to figure out what it even meant - so extracted into a function which can provide explanation.

Part of trying to stop passing known values around - see pass to isSeparateMembershipTransaction
- that function should require no input params & be callable with consistent results anywhere
CRM/Contribute/Form/Contribution/Confirm.php
CRM/Contribute/Form/Contribution/Main.php
CRM/Contribute/Form/ContributionBase.php