Expression: plain text for subject and text

This commit is contained in:
M66B 2024-04-19 07:41:30 +02:00
parent 9bac559ee0
commit 9b8638f3f4
1 changed files with 2 additions and 2 deletions

View File

@ -795,8 +795,8 @@ public class EntityRule {
Expression expression = new Expression(eval, configuration)
.with("to", to)
.with("from", from)
.with("subject", message == null ? null : Arrays.asList(message.subject))
.with("text", doc == null ? null : Arrays.asList(doc.text()));
.with("subject", message == null ? null : message.subject)
.with("text", doc == null ? null : doc.text());
if (message != null) {
boolean hasAttachments = false;