[Rt-commit] rt branch, 4.2/smime-v2-strict, updated. rt-4.0.4-503-ge9aeee2
Jason May
jasonmay at bestpractical.com
Wed Jan 18 17:40:09 EST 2012
The branch, 4.2/smime-v2-strict has been updated
via e9aeee2026567ab3c5d4380fb84a5a0b237ebf5a (commit)
from 00778d76abf07b0527f6d357bcbf544bb14134ec (commit)
Summary of changes:
lib/RT/Test.pm | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
- Log -----------------------------------------------------------------
commit e9aeee2026567ab3c5d4380fb84a5a0b237ebf5a
Author: Kevin Falcone <falcone at bestpractical.com>
Date: Thu Jan 12 18:07:28 2012 -0500
Sometimes sending mail through the mailgate fails
Rather than throwing a warning trying to call $ticket->id,
allow the call to return to the caller with the status and a ticket id
of 0 so the test can tell that it failed (probably intentionally).
diff --git a/lib/RT/Test.pm b/lib/RT/Test.pm
index 073be16..4f14892 100644
--- a/lib/RT/Test.pm
+++ b/lib/RT/Test.pm
@@ -1053,7 +1053,7 @@ sub send_via_mailgate {
my ( $status, $error_message, $ticket )
= RT::Interface::Email::Gateway( {%args, message => $message} );
- return ( $status, $ticket->id );
+ return ( $status, $ticket ? $ticket->id : 0 );
}
-----------------------------------------------------------------------
More information about the Rt-commit
mailing list