CRM-12928 fixes
authormonishdeb <monish.deb@webaccess.co.in>
Fri, 5 Jul 2013 12:59:09 +0000 (18:29 +0530)
committermonishdeb <monish.deb@webaccess.co.in>
Fri, 5 Jul 2013 12:59:09 +0000 (18:29 +0530)
----------------------------------------
* CRM-12928: Merge contacts fatal error: Unknown column 'source_contact_id' in 'where clause (related to activity restructure)
  http://issues.civicrm.org/jira/browse/CRM-12928

CRM/Dedupe/Merger.php

index a42a25323f49012fe7249d8ff1410c3f7c180550..11690964e11da6e3eb1f478402ff42467bf4e3de 100644 (file)
@@ -193,7 +193,7 @@ class CRM_Dedupe_Merger {
       // foreign keys referencing civicrm_contact(id)
       $cidRefs = array(
         'civicrm_acl_cache' => array('contact_id'),
-        'civicrm_activity' => array('source_contact_id'),
+        'civicrm_activity' => array('source_record_id'),
         'civicrm_activity_contact' => array('contact_id'),
         'civicrm_case_contact' => array('contact_id'),
         'civicrm_contact' => array('primary_contact_id'),