[Rt-commit] rt branch, 4.0-trunk, updated. rt-4.0.23-19-gf788366

Alex Vandiver alexmv at bestpractical.com
Thu Apr 9 15:34:39 EDT 2015


The branch, 4.0-trunk has been updated
       via  f788366da321e4ddb3f3a8a2c6f7eba41baf6817 (commit)
      from  1e06f8f36f377fbdca4f93a8291d1d50d0990e97 (commit)

Summary of changes:
 lib/RT/Test.pm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

- Log -----------------------------------------------------------------
commit f788366da321e4ddb3f3a8a2c6f7eba41baf6817
Author: Alex Vandiver <alexmv at bestpractical.com>
Date:   Thu Apr 9 12:26:20 2015 -0700

    Remove a use of defined-or that crept in; 4.0 only requires perl 5.8.3

diff --git a/lib/RT/Test.pm b/lib/RT/Test.pm
index 8b227a7..a8d9e38 100644
--- a/lib/RT/Test.pm
+++ b/lib/RT/Test.pm
@@ -830,7 +830,7 @@ sub create_ticket {
         $args{'MIMEObj'} = MIME::Entity->build(
             From    => Encode::encode( "UTF-8", $args{'Requestor'} ),
             Subject => RT::Interface::Email::EncodeToMIME( String => $args{'Subject'} ),
-            Type    => $args{ContentType} // "text/plain",
+            Type    => (defined $args{ContentType} ? $args{ContentType} : "text/plain"),
             Charset => "UTF-8",
             Data    => Encode::encode( "UTF-8", $content ),
         );

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


More information about the rt-commit mailing list