dev/core#3749 Fix process pledges to throw exception when civiPledge disabled
authorEileen McNaughton <emcnaughton@wikimedia.org>
Wed, 27 Jul 2022 11:17:30 +0000 (12:17 +0100)
committerEileen McNaughton <emcnaughton@wikimedia.org>
Wed, 27 Jul 2022 13:57:57 +0000 (14:57 +0100)
commitadca269748238c9f0ca878c20eb3f27a32a0fed3
tree251b62643773180b88eae681bd2592bd2ec850e9
parent3ad759fb650b43561fa65f60e6bf6b15f7b60b2a
dev/core#3749 Fix process pledges to throw exception when civiPledge disabled

Per the issue - it's fine for the job to not work if disabled,
but the error should be logical.

updatePledgeStatus is only called from one place so made the return
handling flatter for success, and exception on error
CRM/Pledge/BAO/Pledge.php
api/v3/Job.php