dev/core#2749 remove exception when no payment processor configuredhen no payment...
authorEileen McNaughton <emcnaughton@wikimedia.org>
Wed, 11 Aug 2021 22:43:52 +0000 (10:43 +1200)
committerEileen McNaughton <emcnaughton@wikimedia.org>
Thu, 12 Aug 2021 00:38:15 +0000 (12:38 +1200)
commit7ba7b95cf1ad92bd39f2e5a5be9b6f29bd194c1f
tree7329ce8b55a1f49830964b22801ded8894290640
parent586db1c6a0cfbf89b6dd305ce6e2e9462c4d1756
dev/core#2749 remove exception when no payment processor configuredhen no payment processor configured

This is an attempt to fix a regression https://lab.civicrm.org/dev/core/-/issues/2749
when there are legitimately no payment processors assigned to a page.

I feel like the configuration screens are adequate to enforce this & having an exception like
this in the assign function is the wrong place.

The original issue is that the is_monetary box was not checked & hence the
processor wasn't assigned. This felt like asking users to understand that
a payment method when money options are configured
CRM/Core/Form.php
tests/phpunit/CRM/Contribute/Form/ContributionTest.php