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

Create Current Employer should trigger creation of inherited memberships and removing current employer should disable the relationship and delete the inherited membership

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Major
    • Resolution: Fixed/Completed
    • Affects Version/s: 2.1
    • Fix Version/s: 3.0
    • Component/s: CiviMember, Core CiviCRM
    • Labels:
      None

      Description

      Modify the post process code for handling adding and removing a Current Employer via the Edit Contact form as follows:

      • if a new "Current Employer" is entered, check for inheritable membership type - and create membership for the individual if needed (we should trigger the same function which is used to check for and create inherited memberships when a relationship is created or edited)
      • if an existing "Current Employer" is removed or changed (to a different organization), we should DISABLE the existing Employee / Employer relationship record. The "disable relationship" action should also trigger the function which checks if an existing inherited membership needs to be deleted.
        -------------------
        To recreate the "bug":
      • Organization record is a member of type "employer of" (so membership extends to employees)
      • In an individual record, if you select this org as the current employer, it creates the relationship but the individual contact does not receive the inherited membership.

      However, If you go into the individual's relationship tab and edit/save the existing relationship (created through the current employer dropdown), the membership record is then created.

        Attachments

          Activity

            People

            • Assignee:
              sunny.sharma Sunny Sharma
              Reporter:
              lcdweb Brian Shaughnessy
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 1 day
                1d
                Remaining:
                Remaining Estimate - 1 day
                1d
                Logged:
                Time Spent - Not Specified
                Not Specified