From bf43eaacbc0a23d40825629c1bd33a992056064a Mon Sep 17 00:00:00 2001 From: JKingsnorth Date: Thu, 21 Apr 2016 14:38:22 +0100 Subject: [PATCH] Merge screen JS to use existing block information --- CRM/Contact/Form/Merge.php | 3 ++- templates/CRM/Contact/Form/Merge.tpl | 37 ++++++++++++++++++++-------- 2 files changed, 29 insertions(+), 11 deletions(-) diff --git a/CRM/Contact/Form/Merge.php b/CRM/Contact/Form/Merge.php index ba62395199..44d5574f5c 100644 --- a/CRM/Contact/Form/Merge.php +++ b/CRM/Contact/Form/Merge.php @@ -208,7 +208,8 @@ class CRM_Contact_Form_Merge extends CRM_Core_Form { $this->_contactType = $main['contact_type']; $this->addElement('checkbox', 'toggleSelect', NULL, NULL, array('class' => 'select-rows')); - $this->assign('mainLocBlock', json_encode($rowsElementsAndInfo['main_loc_block'])); + $this->assign('mainLocBlock', json_encode($rowsElementsAndInfo['main_details']['location_blocks'])); + $this->assign('locationBlockInfo', json_encode(CRM_Dedupe_Merger::getLocationBlockInfo())); $this->assign('rows', $rowsElementsAndInfo['rows']); // add elements diff --git a/templates/CRM/Contact/Form/Merge.tpl b/templates/CRM/Contact/Form/Merge.tpl index 6e569d5e82..1ed340e3d1 100644 --- a/templates/CRM/Contact/Form/Merge.tpl +++ b/templates/CRM/Contact/Form/Merge.tpl @@ -217,8 +217,10 @@ {literal}