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

Batch merge does not migrate all addresses

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Critical
    • Resolution: Fixed/Completed
    • Affects Version/s: 4.7.9
    • Fix Version/s: 4.7.10
    • Component/s: Dedupe
    • Documentation Required?:
      None
    • Sprint:
      4.7.10 Merge
    • Funding Source:
      Contributed Code

      Description

      Reported by Eileen McNaughton , the following scenario fails on batch merge. Only the first address is present on the merged record:

      'matching_primary_reverse' => array(
      'contact_1' => array(
      array_merge(array('location_type_id' => 'Home', 'is_primary' => 1), $address1),
      ),
      'contact_2' => array(
      array_merge(array('location_type_id' => 'Home', 'is_primary' => 1), $address1),
      array_}}merge(array('location_type_id' => 'Work', 'is_primary' => 0), $address2),
      ),
      'expected' => array(
      array_merge(array('location_type_id' => 'Home', 'is_primary' => 1), $address1),
      array_merge(array('location_type_id' => 'Work', 'is_primary' => 0), $address2),
      ),

      Works as expected on the 'manual' merge screen if you choose to migrate both addresses using the tickboxes.

        Attachments

          Activity

            People

            • Assignee:
              eileen Eileen McNaughton
              Reporter:
              john John K.
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: