From: eileen Date: Tue, 9 Aug 2016 07:05:47 +0000 (+1200) Subject: CRM-19198 Add form merge hook call to dedupe form X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=b54f692d45ddbc8b9850c51f11fc9eef18bf0d3c;p=civicrm-core.git CRM-19198 Add form merge hook call to dedupe form --- 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 = '';