Record change log entry when contact is moved to or restored from trash.
authormark burdett <mfburdett@gmail.com>
Fri, 14 Dec 2018 01:10:38 +0000 (17:10 -0800)
committermark burdett <mfburdett@gmail.com>
Fri, 14 Dec 2018 01:10:38 +0000 (17:10 -0800)
CRM/Contact/BAO/Contact.php

index 4071174b3b463e1ea16914973f0d03db517d10a9..ffc78e6d861c89f6d21a65e74317eeaa7efb543d 100644 (file)
@@ -1204,6 +1204,7 @@ WHERE     civicrm_contact.id = " . CRM_Utils_Type::escape($id, 'Integer');
 
     $contact->copyValues($updateParams);
     $contact->save();
+    CRM_Core_BAO_Log::register($contact->id, 'civicrm_contact', $contact->id);
 
     CRM_Utils_Hook::post('update', $contact->contact_type, $contact->id, $contact);