From e33a778d33d0715cecd72b145180e9a17f87b69e Mon Sep 17 00:00:00 2001 From: Diego Goes Bauleo Date: Sun, 28 Feb 2016 18:37:32 -0300 Subject: [PATCH] Removing unsupported status change options when the contribution is completed --- CRM/Contribute/Form/Contribution.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CRM/Contribute/Form/Contribution.php b/CRM/Contribute/Form/Contribution.php index 4e286e3997..18c54ab474 100644 --- a/CRM/Contribute/Form/Contribution.php +++ b/CRM/Contribute/Form/Contribution.php @@ -705,6 +705,11 @@ class CRM_Contribute_Form_Contribution extends CRM_Contribute_Form_AbstractEditP $name = CRM_Utils_Array::value($contributionStatus, $statusName); switch ($name) { case 'Completed': + // [CRM-17498] Removing unsupported status change options. + unset($status[CRM_Utils_Array::key('Pending', $statusName)]); + unset($status[CRM_Utils_Array::key('Failed', $statusName)]); + unset($status[CRM_Utils_Array::key('Partially paid', $statusName)]); + unset($status[CRM_Utils_Array::key('Pending refund', $statusName)]); case 'Cancelled': case 'Chargeback': case 'Refunded': -- 2.25.1