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

Creation of default domain contact during upgrade may create a duplicate contact

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Trivial
    • Resolution: Fixed/Completed
    • Affects Version/s: 4.3.0
    • Fix Version/s: 4.3.0
    • Component/s: Accounting Integration
    • Labels:
      None

      Description

      Upgrade should check for existing organization contact with organization name = domain name, and primary email = domain email. If found, set that organization as the domain organization contact rather than creating a new contact record.

      — Original Post —
      forum post: http://forum.civicrm.org/index.php/topic,27702.0.html

      Mail Content of dgg

      I "thought" we had put in some code to see if there's already an organization contact which dupe matches domain.name and email linked in domain.loc_block_id - and if so assign that contact as domain contact. However, a quick look at the code seems like we didn't do that ??

      Can you confirm what the code is "supposed to do" if site already has org contact with contact.organization_name = domain.name and linked email for that org = linked email for domain. If we are supposed to 'merge' - that's not happening (I did a quick test). In either case, I think we need to add another status message postUpgrade letting people know that we added (or merged) an org contact as default domain contact.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                dgg David Greenberg
                Reporter:
                pradeep.nayak Pradeep Nayak
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: