From: mark burdett Date: Fri, 14 Dec 2018 01:10:38 +0000 (-0800) Subject: Record change log entry when contact is moved to or restored from trash. X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=ecfc4510db441187ff0c99c2d793aff18b5dc6b3;p=civicrm-core.git Record change log entry when contact is moved to or restored from trash. --- 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);