Details
-
Type: Bug
-
Status: Done/Fixed
-
Priority: Major
-
Resolution: Won't Fix
-
Affects Version/s: 4.4.4
-
Fix Version/s: 4.5
-
Component/s: CiviContribute
-
Labels:None
Description
Develop an extension for CiviCRM 4.4.4 that will allow custom contribution statuses to be used for contributions, and changes to be made amongst them, and separately amongst the ones not created by the extension, but no transitions between those created by the extension and those not created by the extension.
Original Description
Create a custom contribution status through Option Groups. Assign this status to a contribution of any type. Then edit this contribution and attempt to change the status any other status, such as Completed, Cancelled, or any other custom status. An error occurs.
See attached. Thanks sponsorship available for a quick fix.
Notice: Undefined index: in CRM_Contribute_BAO_Contribution::checkStatusValidation() (line 2877 of /home/webeditor/jenkins-node/workspace/buildkit-demos.civicrm.org/build/d7-demo/sites/all/modules/civicrm/CRM/Contribute/BAO/Contribution.php).
Warning: in_array() expects parameter 2 to be array, null given in CRM_Contribute_BAO_Contribution::checkStatusValidation() (line 2877 of /home/webeditor/jenkins-node/workspace/buildkit-demos.civicrm.org/build/d7-demo/sites/all/modules/civicrm/CRM/Contribute/BAO/Contribution.php).