From: Tim Otten Date: Tue, 5 Dec 2023 22:21:19 +0000 (+0000) Subject: TemplateTrait - Fix references to CRM_Core_Exception X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=0b3caaa2b7cce1a3c8e911a19e748ba4b68900d8;p=civicrm-core.git TemplateTrait - Fix references to CRM_Core_Exception There are a few places where this class throws exceptions. It's quite uncommon. But if it happens, then it won't work right. --- diff --git a/Civi/WorkflowMessage/Traits/TemplateTrait.php b/Civi/WorkflowMessage/Traits/TemplateTrait.php index 73d6f41272..2d881193e3 100644 --- a/Civi/WorkflowMessage/Traits/TemplateTrait.php +++ b/Civi/WorkflowMessage/Traits/TemplateTrait.php @@ -13,6 +13,7 @@ namespace Civi\WorkflowMessage\Traits; use Civi\Api4\Contact; use Civi\Api4\MessageTemplate; +use CRM_Core_Exception; /** * @method getTemplate(): ?array