Answers.Body: <p>Just adding 'for the record' but not necessarily as an Answer to the core question.</p>
  <p>Merging two contacts should result in the saved contact ending up with both sets of Activities (unless that option has been unchecked) - have tested and confirmed this is working as expected on dmaster</p>
  <p>Contact A
  <a href="https://i.sstatic.net/gdQ5Y.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/gdQ5Y.png" alt="enter image description here" /></a></p>
  <p>Contact B
  <a href="https://i.sstatic.net/0K9n1.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/0K9n1.png" alt="enter image description here" /></a></p>
  <p>Merge screen
  <a href="https://i.sstatic.net/KqP9G.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/KqP9G.png" alt="enter image description here" /></a></p>
  <p>Outcome on Contact that is saved
  <a href="https://i.sstatic.net/Umxgm.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/Umxgm.png" alt="enter image description here" /></a></p>
  <p>The above assumes the Activities are not related to Cases.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2023-02-16T22:45:49.757Z
Answers.Text: I think the author meant civicrm_log entries, i.e. the changelog.
Answers.UserDisplayName: Demerit
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2023-02-16T22:53:02.127Z
Answers.Text: ah sorry 'activities' not Activities - well since this has some nice pictures maybe I will leave for a bit before destroying :-)
Answers.UserDisplayName: petednz - fuzion
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2023-02-17T00:59:29.173Z
Answers.Text: Hehe. I guess it's also possible that they did mean Activities, and that for whatever reason the checkbox on the "Activities" row on the merge screen was unchecked by default and they didn't check it. Since then it wouldn't copy over the Activities.
Answers.UserDisplayName: Demerit
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2023-04-02T10:08:51.127Z
Answers.Text: Sorry for the confusion. I did mean log entries. Activities are merged as you said.
  
  I will check the trigger-based logging, but I think that it is more for admins. I would like to see which changes a contact and its memberships have had.
  
  The use case is that a person could be entered by different group admins, which are not aware of the mutual existence. When deduplicating, it would be great to have the changes combined.
Answers.UserDisplayName: Webmaster COVS
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2023-02-16T22:42:04.060Z
Answers.LastActivityDate: 2023-02-16T22:42:04.060Z
Answers.UserDisplayName: petednz - fuzion
Body: <p>When contacts are merged, only the log and activities of one of the contacts are kept. Part of the change history is deleted and this is not always the right way, e.g. for auditing purposes.</p>
  <p>It would be great to have an option when merging.</p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2023-02-16T22:12:54.223Z
Comments.Text: If audit trail is desired then consider turning on [trigger-based logging](https://docs.civicrm.org/sysadmin/en/latest/setup/logging/) as an alternate.
Comments.UserDisplayName: Demerit
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2023-02-16T22:39:06.090Z
Comments.Text: Merging two contacts should result in the saved contact ending up with both sets of Activities - have tested and confirmed this is working as expected on dmaster
Comments.UserDisplayName: petednz - fuzion
Tags: <activities><duplicate-contacts><logs>
Title: Feature request: Combine log and activities when merging double contacts
ThreadText: # Feature request: Combine log and activities when merging double contacts
  
  (Asked by: username_0 on 2023-02-16)
  
  When contacts are merged, only the log and activities of one of the contacts are kept. Part of the change history is deleted and this is not always the right way, e.g. for auditing purposes.
  
  It would be great to have an option when merging.
  
  **Tags:** activities, duplicate-contacts, logs
  
  > **Comments:**
  > **username_1**: If audit trail is desired then consider turning on [trigger-based logging](https://docs.civicrm.org/sysadmin/en/latest/setup/logging/) as an alternate.  
  > **username_2**: Merging two contacts should result in the saved contact ending up with both sets of Activities - have tested and confirmed this is working as expected on dmaster  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_2 on 2023-02-16. Score: 0
  
  Just adding 'for the record' but not necessarily as an Answer to the core question.
  
  Merging two contacts should result in the saved contact ending up with both sets of Activities (unless that option has been unchecked) - have tested and confirmed this is working as expected on dmaster
  
  Contact A
  [![enter image description here](https://i.sstatic.net/gdQ5Y.png)](https://i.sstatic.net/gdQ5Y.png)
  
  Contact B
  [![enter image description here](https://i.sstatic.net/0K9n1.png)](https://i.sstatic.net/0K9n1.png)
  
  Merge screen
  [![enter image description here](https://i.sstatic.net/KqP9G.png)](https://i.sstatic.net/KqP9G.png)
  
  Outcome on Contact that is saved
  [![enter image description here](https://i.sstatic.net/Umxgm.png)](https://i.sstatic.net/Umxgm.png)
  
  The above assumes the Activities are not related to Cases.
  
  > **Comments:**
  > **username_1**: I think the author meant civicrm_log entries, i.e. the changelog.  
  > **username_2**: ah sorry 'activities' not Activities - well since this has some nice pictures maybe I will leave for a bit before destroying :-)  
  > **username_1**: Hehe. I guess it's also possible that they did mean Activities, and that for whatever reason the checkbox on the "Activities" row on the merge screen was unchecked by default and they didn't check it. Since then it wouldn't copy over the Activities.  
  > **username_0**: Sorry for the confusion. I did mean log entries. Activities are merged as you said.  I will check the trigger-based logging, but I think that it is more for admins. I would like to see which changes a contact and its memberships have had.  The use case is that a person could be entered by different group admins, which are not aware of the mutual existence. When deduplicating, it would be great to have the changes combined.  
  
  ---
  
  