From 8be63b349e9151da79c0629985ad1a42e11bcecc Mon Sep 17 00:00:00 2001 From: Tim Otten Date: Mon, 18 Sep 2023 23:53:36 -0700 Subject: [PATCH] hook_civicrm_links - Add exception for basic.CRM_Core_BAO_MessageTemplate.page --- CRM/Utils/Hook.php | 2 +- tests/events/hook_civicrm_links.evch.php | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CRM/Utils/Hook.php b/CRM/Utils/Hook.php index 744691c2e3..a4599f2ad4 100644 --- a/CRM/Utils/Hook.php +++ b/CRM/Utils/Hook.php @@ -410,7 +410,7 @@ abstract class CRM_Utils_Hook { * The type of operation being performed. * @param string $objectName * The name of the object. This is generally a CamelCase entity (eg `Contact` or `Activity`). - * Historical exceptions: 'CRM_Core_BAO_LocationType' + * Historical exceptions: 'CRM_Core_BAO_LocationType', 'CRM_Core_BAO_MessageTemplate' * @param int $objectId * The unique identifier for the object. * @param array $links diff --git a/tests/events/hook_civicrm_links.evch.php b/tests/events/hook_civicrm_links.evch.php index c849ef1a0a..f3a40c1c91 100644 --- a/tests/events/hook_civicrm_links.evch.php +++ b/tests/events/hook_civicrm_links.evch.php @@ -13,6 +13,7 @@ return new class() extends EventCheck implements HookInterface { */ protected $grandfatheredObjectNames = [ 'CRM_Core_BAO_LocationType', + 'CRM_Core_BAO_MessageTemplate', ]; /** @@ -27,6 +28,7 @@ return new class() extends EventCheck implements HookInterface { 'job.manage.action::Job', 'membershipType.manage.action::MembershipType', 'messageTemplate.manage.action::MessageTemplate', + 'basic.CRM_Core_BAO_MessageTemplate.page::CRM_Core_BAO_MessageTemplate', ]; /** -- 2.25.1