put back mistakenly removed variable
authordemeritcowboy <demeritcowboy@hotmail.com>
Tue, 7 Jan 2020 21:07:25 +0000 (16:07 -0500)
committerdemeritcowboy <demeritcowboy@hotmail.com>
Tue, 7 Jan 2020 21:07:25 +0000 (16:07 -0500)
CRM/Contribute/Form/ContributionView.php

index bdfe7cec6c8daa976d4413f1084d1c99f9c438e2..d16922d9ab04fb8e7439f2e46cd08951012418be 100644 (file)
@@ -210,7 +210,8 @@ class CRM_Contribute_Form_ContributionView extends CRM_Core_Form {
       NULL,
       $recentOther
     );
-    $contributionStatus = $status[$values['contribution_status_id']];
+    $statusOptionValueNames = CRM_Contribute_PseudoConstant::contributionStatus(NULL, 'name');
+    $contributionStatus = $statusOptionValueNames[$values['contribution_status_id']];
     if (in_array($contributionStatus, ['Partially paid', 'Pending refund'])
         || ($contributionStatus == 'Pending' && $values['is_pay_later'])
         ) {