From ecfc4510db441187ff0c99c2d793aff18b5dc6b3 Mon Sep 17 00:00:00 2001 From: mark burdett Date: Thu, 13 Dec 2018 17:10:38 -0800 Subject: [PATCH] Record change log entry when contact is moved to or restored from trash. --- CRM/Contact/BAO/Contact.php | 1 + 1 file changed, 1 insertion(+) diff --git a/CRM/Contact/BAO/Contact.php b/CRM/Contact/BAO/Contact.php index 4071174b3b..ffc78e6d86 100644 --- a/CRM/Contact/BAO/Contact.php +++ b/CRM/Contact/BAO/Contact.php @@ -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); -- 2.25.1