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

[PATCH] Use CRM_Core_BAO_UFMatch::synchronizeUFMatch in Bridge/Utils.php instead of creating a new contact

    Details

    • Type: Patch
    • Status: Done/Fixed
    • Priority: Minor
    • Resolution: Fixed/Completed
    • Affects Version/s: 4.1.0
    • Fix Version/s: 4.1.1
    • Labels:
      None

      Description

      When I used civicrm_og_sync with Bridge/Utils.php I ended up with one contact duplicated 20 times while testing some functionality.

      I then checked the contactID function in Utils.php and found out that its always creating a new contact and at least in my case I needed to deduplicate that manually and creation of the account did not create the UFMatch combined with Drupal.

      I am not sure if they attached patch is completely ready to go as there is a hardcoded 'Drupal', but it works for our use case with Drupal and correctly creates the UFMatch.

      It still could be a good starting point to making sure no duplicate contacts are created until the user logs in (and the UFMatch is created naturally).

      Thanks and Best Wishes,

      Fabian

        Attachments

          Activity

            People

            • Assignee:
              lobo Donald A. Lobo
              Reporter:
              fabianx Fabian Franz
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: