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

API participant update clobbers participant_fee_level

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Minor
    • Resolution: Cannot Reproduce
    • Affects Version/s: 4.1.1
    • Fix Version/s: 4.2.0
    • Component/s: CiviCRM API
    • Labels:
      None

      Description

      Updating a participant via the API seems to clobber the participant_fee_level field. Before the update, participant fields look like:

      "participant_id":"6517",
      "participant_fee_level":["Adult - 2","Child - 1","Service Fee"],
      "participant_fee_amount":"57.00",
      "participant_fee_currency":"USD",
      "event_type":"Performance",
      "participant_status_id":"1",
      "participant_status":"Registered",

      Then I call update via AJAX:

      $().crmAPI('Participant', 'update',

      {'id':partID, 'participant_status_id':partNewStatus }

      , {success: function(data) { .....

      And afterward, participant_fee_level looks like this:

      "participant_id":"6517",
      "participant_fee_level":"Array",
      "participant_fee_amount":"57.00",
      "participant_fee_currency":"USD",
      "event_type":"Performance",
      "participant_status_id":"2",
      "participant_status":"Attended",

        Attachments

          Activity

            People

            • Assignee:
              eileen Eileen McNaughton
              Reporter:
              jcm55 Jim Meehan
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: