From b54f692d45ddbc8b9850c51f11fc9eef18bf0d3c Mon Sep 17 00:00:00 2001 From: eileen Date: Tue, 9 Aug 2016 19:05:47 +1200 Subject: [PATCH] CRM-19198 Add form merge hook call to dedupe form --- CRM/Contact/Form/Merge.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/CRM/Contact/Form/Merge.php b/CRM/Contact/Form/Merge.php index 52e97b1806..b574c3115e 100644 --- a/CRM/Contact/Form/Merge.php +++ b/CRM/Contact/Form/Merge.php @@ -317,8 +317,9 @@ class CRM_Contact_Form_Merge extends CRM_Core_Form { $formValues['main_details'] = $this->_mainDetails; $formValues['other_details'] = $this->_otherDetails; - - CRM_Dedupe_Merger::moveAllBelongings($this->_cid, $this->_oid, $formValues); + $migrationData = array('migration_info' => $formValues); + CRM_Utils_Hook::merge('form', $migrationData, $this->_cid, $this->_oid); + CRM_Dedupe_Merger::moveAllBelongings($this->_cid, $this->_oid, $migrationData['migration_info']); $name = CRM_Core_DAO::getFieldValue('CRM_Contact_DAO_Contact', $this->_cid, 'display_name'); $message = ''; -- 2.25.1