Details
-
Type: Bug
-
Status: Done/Fixed
-
Priority: Minor
-
Resolution: Fixed/Completed
-
Affects Version/s: 4.7
-
Fix Version/s: 4.7
-
Component/s: CiviContribute
-
Labels:None
-
Documentation Required?:None
-
Funding Source:Core Team Funds
Description
Steps to replicate:
1) Edit any existing Contribution that has premium and unselect chosen premium (product_name = 0)
2) Save and open the Contribution view page
You will see
- The premium is not deleted
- Notice: Undefined offset: 1 in CRM_Contribute_Form_AdditionalInfo::processPremium() (line 198 of /home/monish/src/civicrm/CRM/Contribute/Form/AdditionalInfo.php).
Encountered in WebTest_Contribute_UpdateContributionTest.testDeletePremium