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

No phone/e-mail set to Primary upon contact update

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 4.7.14, 4.7.25
    • Fix Version/s: None
    • Component/s: Import
    • Labels:
      None
    • Versioning Impact:
      Patch (backwards-compatible bug fixes)
    • Documentation Required?:
      None
    • Funding Source:
      Core Team Funds
    • Verified?:
      No
    • How it works currently:
      Hide
      To replicate the issue (for the email in the example):
      1. import a contact lacking email using csv (Contacts>Import Contacts):
      First Name,Last Name
      Test,Subject
      2. Note the Contact ID of the newly created contact.
      3. Update the contact using csv (Contact>Import contacts, For duplicate contacts:Update):
      Contact ID,Email
      <insert Contact ID of Test Subject>,test@somewhere.com
      4. Check in contact reports that the updated email for Test Subject is not shown. In the contact view, the imported Home Email is displayed, but the caption is not in bold, indicating that it is not the Primary email. When the email address is clicked and saved with the default Primary option selected, it then becomes Primary and is correctly displayed in reports and contact search.
      Show
      To replicate the issue (for the email in the example): 1. import a contact lacking email using csv (Contacts>Import Contacts): First Name,Last Name Test,Subject 2. Note the Contact ID of the newly created contact. 3. Update the contact using csv (Contact>Import contacts, For duplicate contacts:Update): Contact ID,Email <insert Contact ID of Test Subject>, test@somewhere.com 4. Check in contact reports that the updated email for Test Subject is not shown. In the contact view, the imported Home Email is displayed, but the caption is not in bold, indicating that it is not the Primary email. When the email address is clicked and saved with the default Primary option selected, it then becomes Primary and is correctly displayed in reports and contact search.
    • How it should work:
      Step 4: the email should be set as Primary and be shown in contact reports.
    • Acceptance Criteria:
      If an email or phone is added during contact update, for a contact that previously had no email or phone, the imported one is set as Primary.

      Description

      When an existing contact which does not have an e-mail and/or phone, is updated via the CiviCRM GUI, the email and/or phone is updated, but not set to Primary. As a result, the email  and/or phone does not appear in Email and Phone fields in reports, and cannot be used for contact search. If the email or phone is present at the time when the contact is created, it is correctly set to Primary. However, it appears that in case there is no email or phone, the Primary flag is not set, and during contact update, is not modified and left missing.

      The bug was discovered in CiviCRM version 4.7.14, but is present also in 4.7.25 on the demo site.

       

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              janisr Jānis Rūmnieks
            • Votes:
              3 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated: