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

CiviGroup Roles Sync: Can match incorrect user

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Major
    • Resolution: Fixed/Completed
    • Affects Version/s: 4.6.13, 4.7.2
    • Fix Version/s: 4.6.15, 4.7.4
    • Component/s: None
    • Labels:
    • Documentation Required?:
      None
    • Funding Source:
      Contributed Code

      Description

      The module looks up what user to assign a role to based on the email address of their Drupal account. This is not accurate enough, as there could be several users with that email address, in theory.

      //find the contact record
          $params = array('version' => 3, 'sequential' => 1, 'email' => $user->mail );
      $contact_id = CRM_Utils_Array::value( 'contact_id', $contact['values'][0] );

      We need to use the actual contact ID associated with the Drupal user instead.

        Attachments

          Activity

            People

            • Assignee:
              jitendra.purohit Jitendra Purohit
              Reporter:
              john John K.
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 1 hour
                1h
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 hour
                1h