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

Disabling a relationship via API will not remove the inherited membership

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: 4.3.4
    • Fix Version/s: 4.6
    • Component/s: CiviCRM API, Core CiviCRM
    • Labels:
      None
    • Documentation Required?:
      None

      Description

      Tested and confirmed the bug on demo.civicrm.org which was using 4.3.x when testing. When disabling the relationship (which provides a membership by inheritance) via the API, the inherited membership is not removed from the secondary contact. I created a membership type (family) with relationship for inheritance (spouse of). I then added a membership to one contact and a relationship (spouse) on another. The inheritance looked fine and I could disable/enable the relationship and the membership is "removed"/"added". But then trying the same thing with the API (using civicrm/ajax/doc) will disable the relationship but the membership is still showing for the secondary contact. I can only assume there is some bug or missing functionality in the API. I will update this if I find anything in the code to suggest why.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                herb@freeform Herb
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: