From 2b8a0fd89bdf63dcf87ae868559b97f8d3e6eee2 Mon Sep 17 00:00:00 2001 From: James Moger Date: Mon, 8 Sep 2014 13:10:38 -0400 Subject: [PATCH] Fix ticket mail dropping bug when author does not have an address --- src/main/java/com/gitblit/models/Mailing.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/gitblit/models/Mailing.java b/src/main/java/com/gitblit/models/Mailing.java index 9c0ff906..186a4241 100644 --- a/src/main/java/com/gitblit/models/Mailing.java +++ b/src/main/java/com/gitblit/models/Mailing.java @@ -61,7 +61,7 @@ public class Mailing { } public boolean hasRecipients() { - return toAddresses.size() > 0; + return (toAddresses.size() + ccAddresses.size()) > 0; } public void setRecipients(String... addrs) { -- 2.39.5