Answers.Body: <p>This is something not handle in CiviCRM at the moment when two contacts are merged. I am not sure if any one has submitted fix for this issue. You can either fix this by adding code  to update contact_id for all contact reference custom field in core or through <a href="https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_merge/" rel="nofollow noreferrer">hook_civicrm_merge</a> hook via extension.</p>
  
  <p>HTH</p>
  
  <p>Pradeep</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-06-08T12:14:11.247Z
Answers.LastActivityDate: 2018-06-08T12:14:11.247Z
Answers.UserDisplayName: Pradeep Nayak
Body: <p>I have created a Custom Group for Events. This Group has one custom field Organizor which is a autocomplete with contacts.
  But on merging the contact the Organizor custom field is not updated accordingly. </p>
  
Tags: <duplicate-contacts>
Title: Custom Field that is a Foreign key to contact in Custom Group that extends Event is not updated on merge of contacts
ThreadText: # Custom Field that is a Foreign key to contact in Custom Group that extends Event is not updated on merge of contacts
  
  (Asked by: username_0 on 2018-06-08)
  
  I have created a Custom Group for Events. This Group has one custom field Organizor which is a autocomplete with contacts.
  But on merging the contact the Organizor custom field is not updated accordingly.
  
  **Tags:** duplicate-contacts
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2018-06-08. Score: 1
  
  This is something not handle in CiviCRM at the moment when two contacts are merged. I am not sure if any one has submitted fix for this issue. You can either fix this by adding code to update contact\_id for all contact reference custom field in core or through [hook\_civicrm\_merge](https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_merge/) hook via extension.
  
  HTH
  
  Pradeep
  
  
  ---
  
  