[Rt-commit] rt branch, 3.9-trunk, updated. rt-3.8.8-543-g20fc3eb

Shawn Moore sartak at bestpractical.com
Tue Aug 24 18:46:13 EDT 2010


The branch, 3.9-trunk has been updated
       via  20fc3eb766d6fc162b97ac0a8f9da41c023930e8 (commit)
      from  c5b8119bf972d17b10264afb612b8db95fe68e13 (commit)

Summary of changes:
 lib/RT/Action/Notify.pm |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

- Log -----------------------------------------------------------------
commit 20fc3eb766d6fc162b97ac0a8f9da41c023930e8
Author: Shawn M Moore <sartak at bestpractical.com>
Date:   Tue Aug 24 18:44:45 2010 -0400

    Only add owner to the recipients if there is an email address

diff --git a/lib/RT/Action/Notify.pm b/lib/RT/Action/Notify.pm
index cb77ac9..f5067b8 100755
--- a/lib/RT/Action/Notify.pm
+++ b/lib/RT/Action/Notify.pm
@@ -115,7 +115,10 @@ sub SetRecipients {
         }
     }
 
-    if ( $arg =~ /\bOwner\b/ && $ticket->OwnerObj->id != $RT::Nobody->id ) {
+    if (   $arg =~ /\bOwner\b/
+        && $ticket->OwnerObj->id != $RT::Nobody->id
+        && $ticket->OwnerObj->EmailAddress
+    ) {
         # If we're not sending to Ccs or requestors,
         # then the Owner can be the To.
         if (@To) {

-----------------------------------------------------------------------


More information about the Rt-commit mailing list