From: Diego Goes Bauleo Date: Sun, 28 Feb 2016 21:37:32 +0000 (-0300) Subject: Removing unsupported status change options when the contribution is completed X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=e33a778d33d0715cecd72b145180e9a17f87b69e;p=civicrm-core.git Removing unsupported status change options when the contribution is completed --- 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':