From 1ba809f76206283f9dde4be47249dbb1d7cb017b Mon Sep 17 00:00:00 2001 From: Tim Otten Date: Mon, 14 Jul 2014 17:27:44 -0700 Subject: [PATCH] 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 --- api/v3/Contribution.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.25.1