From: Tim Otten Date: Tue, 15 Jul 2014 00:27:44 +0000 (-0700) Subject: Fix hard crash of test-suite due to syntax error X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=1ba809f76206283f9dde4be47249dbb1d7cb017b;p=civicrm-core.git Fix hard crash of test-suite due to syntax error Note: This is *only* a syntax fix. I don't what's supposed to be going on, and there are other tests which fails... but at least they don't crash the test-suite. Original change was: 9e2ee07bf82624fe50070e14ccc6aa39ffa1b7d9 --- diff --git a/api/v3/Contribution.php b/api/v3/Contribution.php index 17e260824d..0b5b5acc2b 100644 --- a/api/v3/Contribution.php +++ b/api/v3/Contribution.php @@ -384,7 +384,7 @@ function civicrm_api3_contribution_completetransaction(&$params) { if(!$contribution->loadRelatedObjects($input, $ids, FALSE, TRUE)){ throw new API_Exception('failed to load related objects'); } - elseif ($contribution['contribution_status_id'] == CRM_Core_OptionGroup::getValue('contribution_status', 'Completed', 'name')) { + elseif ($contribution->contribution_status_id == CRM_Core_OptionGroup::getValue('contribution_status', 'Completed', 'name')) { throw new API_Exception(ts('Contribution already completed')); } $objects = $contribution->_relatedObjects;