From: Tim Otten Date: Tue, 19 Sep 2023 06:53:36 +0000 (-0700) Subject: hook_civicrm_links - Add exception for basic.CRM_Core_BAO_MessageTemplate.page X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=8be63b349e9151da79c0629985ad1a42e11bcecc;p=civicrm-core.git hook_civicrm_links - Add exception for basic.CRM_Core_BAO_MessageTemplate.page --- 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', ]; /**