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

Get memberships api ignores membership_type_id if contact_id is present

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Major
    • Resolution: Fixed/Completed
    • Affects Version/s: 4.4.4
    • Fix Version/s: 4.4.5
    • Component/s: CiviMember
    • Labels:

      Description

      Not sure if this is indented functionality but I'm pretty sure it didn't work this way in 4.3.

      If requesting membership information for a specific contact_id AND membership_type_id, what we get is a list of all memberships for that contact.

      Example on the demo site:
      /civicrm/ajax/rest?entity=Membership&action=get&debug=1&sequential=1&json=1&membership_type_id=2&contact_id=13

      returns one membership for contact 13 with membership_id = 1.

      If this is a bug, it's a bad one.

        Attachments

          Activity

            People

            • Assignee:
              eileen Eileen McNaughton
              Reporter:
              stan_d Stan Dragnev
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: