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)