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

Campaign_id parameter is ignored in API Contribution create

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Minor
    • Resolution: Fixed/Completed
    • Affects Version/s: 4.2.7
    • Fix Version/s: 4.3.0
    • Component/s: CiviCRM API
    • Labels:
      None

      Description

      The 'campaign_id' parameter is ignored in the API create for a Contribution object.

      This can be fixed by adding the following in api/v3/Contribution.php below line 71:
      $values["campaign_id"] = CRM_Utils_Array::value('campaign_id', $params);

        Attachments

          Activity

            People

            • Assignee:
              yashodha Yashodha Chaku
              Reporter:
              nganivet Nicolas Ganivet
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 5 minutes
                5m
                Remaining:
                Remaining Estimate - 5 minutes
                5m
                Logged:
                Time Spent - Not Specified
                Not Specified