Skip to content

Commit

Permalink
feat: allow more than ezemail datatype for recipient field
Browse files Browse the repository at this point in the history
  • Loading branch information
René Hrdina committed Apr 19, 2022
1 parent c2ee6cb commit fbc3778
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Core/Factory/EmailDataFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ protected function resolveEmail(TemplateContent $data, $field)
$fieldValue = $this->translationHelper->getTranslatedField($content, $field);

if ($fieldValue instanceof Field) {
return [$fieldValue->value->email];
return [(string)$fieldValue->value];
}

}
Expand Down

0 comments on commit fbc3778

Please sign in to comment.