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

Multi-level membership inheritance causes bin/UpdateMembershipRecord to produce duplicate membeships

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Major
    • Resolution: Fixed/Completed
    • Affects Version/s: 2.1.5
    • Fix Version/s: 2.2.0
    • Component/s: CiviMember
    • Labels:
      None

      Description

      If membership is inherited through more than one level, the next run of bin/UpdateMembershipRecord creates duplicate memberships.

      For example, suppose a membership organization "National". Organization "State" is a member of "National". Organization "Chapter" has a relationship with "State" that causes it to inherit membership from "National". Individual "Jane Member" has a relationship with "Chapter" that causes her to inherit membership from "Chapter". So far, so good. Then cron script bin/UpdateMembershipRecord runs. After that, "Jane Member" has two (duplicate) memberships. Additional runs of the script causes a cascade of damage.

      The attached Selenium (http://seleniumhq.org) script produces this result in 2.1.6 with 100% reproducibility.

      Eliminating multi-level membership inheritance is not likely to be a good answer since it's useful.

      Cheers – Walt

        Attachments

          Activity

            People

            • Assignee:
              kurund Kurund Jalmi
              Reporter:
              dharmatech Dharmatech
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 2 hours
                2h
                Remaining:
                Remaining Estimate - 2 hours
                2h
                Logged:
                Time Spent - Not Specified
                Not Specified