CRM-14913 fix - merging contacts does not change contact_id in financial_item table.
authormonishdeb <monish.deb@webaccessglobal.com>
Thu, 3 Jul 2014 16:13:05 +0000 (21:43 +0530)
committermonishdeb <monish.deb@webaccessglobal.com>
Thu, 3 Jul 2014 16:13:05 +0000 (21:43 +0530)
https://issues.civicrm.org/jira/browse/CRM-14913

CRM/Dedupe/Merger.php

index 3faa547bd407e72c7adbf14326b298712b024792..8504ef34f004caf5ebcc98672050d7a4d4efe3c5 100644 (file)
@@ -202,6 +202,7 @@ class CRM_Dedupe_Merger {
         'civicrm_contribution_page' => array('created_id'),
         'civicrm_contribution_recur' => array('contact_id'),
         'civicrm_contribution_soft' => array('contact_id'),
+        'civicrm_financial_item' => array('contact_id'),
         'civicrm_custom_group' => array('created_id'),
         'civicrm_entity_tag' => array('entity_id'),
         'civicrm_event' => array('created_id'),
@@ -1535,7 +1536,7 @@ INNER JOIN  civicrm_membership membership2 ON membership1.membership_type_id = m
    */
   static function getContactFields() {
     $contactFields = CRM_Contact_DAO_Contact::fields();
-    $invalidFields = array('api_key', 'contact_is_deleted', 'created_date', 'display_name', 'hash', 'id', 'modified_date', 
+    $invalidFields = array('api_key', 'contact_is_deleted', 'created_date', 'display_name', 'hash', 'id', 'modified_date',
       'primary_contact_id', 'sort_name', 'user_unique_id');
     foreach ($contactFields as $field => $value) {
       if (in_array($field, $invalidFields)) {
@@ -1578,4 +1579,3 @@ INNER JOIN  civicrm_membership membership2 ON membership1.membership_type_id = m
     }
   }
 }
-