From bff4e859cdfee3a0472383ff02a8f1eec2f6eb93 Mon Sep 17 00:00:00 2001 From: Yuri Kuznetsov Date: Thu, 6 Jan 2022 14:07:57 +0200 Subject: [PATCH] fix notice --- application/Espo/Services/EmailTemplate.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/Espo/Services/EmailTemplate.php b/application/Espo/Services/EmailTemplate.php index 591e9790a0..99425cddb0 100644 --- a/application/Espo/Services/EmailTemplate.php +++ b/application/Espo/Services/EmailTemplate.php @@ -63,7 +63,7 @@ class EmailTemplate extends Record implements ->withCopyAttachments($copyAttachments); $data = Data::create() - ->withEmailAddress($params['emailAddress']) + ->withEmailAddress($params['emailAddress'] ?? null) ->withEntityHash($params['entityHash'] ?? []) ->withParent($params['parent'] ?? null) ->withParentId($params['parentId'] ?? null)