From adf989f253a9597c1858ba7a3a7bc0c0c3b3412b Mon Sep 17 00:00:00 2001 From: psteiwer Date: Thu, 27 Feb 2020 00:18:41 +0100 Subject: [PATCH] Fix SendNoData condition --- PivotSubscriptions/Task.cls | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PivotSubscriptions/Task.cls b/PivotSubscriptions/Task.cls index 2fab7d6..a250c4c 100644 --- a/PivotSubscriptions/Task.cls +++ b/PivotSubscriptions/Task.cls @@ -140,7 +140,7 @@ ClassMethod SendEmail(pID, pPivot As %String, pEmails As %String, pFormat As %St Do msg.To.SetAt(tEmail,1) // Send email - If $G(^PivotSubscriptions.Settings("SendNoData"),1) { + If tHasResults||$G(^PivotSubscriptions.Settings("SendNoData"),1) { Set tSC=server.Send(msg) } // TODO: Log individual send status?