Uploaded image for project: 'CiviCRM'
  1. CiviCRM
  2. CRM-17578

Premium cannot be deleted on backoffice 'Edit Contribution'

    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

        Attachments

          Activity

            People

            • Assignee:
              monish.deb Monish Deb
              Reporter:
              monish.deb Monish Deb
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: