[Rt-commit] rt branch, 4.0/cli-show-ticket-attachment-uninitialized-warning-fix, created. rt-4.0.5-79-gb4363c1

? sunnavy sunnavy at bestpractical.com
Thu Mar 1 13:00:33 EST 2012


The branch, 4.0/cli-show-ticket-attachment-uninitialized-warning-fix has been created
        at  b4363c143f5e53d10f0d15b51c34544473a95094 (commit)

- Log -----------------------------------------------------------------
commit b4363c143f5e53d10f0d15b51c34544473a95094
Author: sunnavy <sunnavy at bestpractical.com>
Date:   Thu Mar 1 20:59:22 2012 +0800

    fix an uninitialized warning when running "show ticket/ID/attachments/ID"
    
    "Type" is undef when $k is attachment instead of txn

diff --git a/bin/rt.in b/bin/rt.in
index 5e1c053..98f9039 100755
--- a/bin/rt.in
+++ b/bin/rt.in
@@ -1710,7 +1710,7 @@ sub prettyshow {
         }
         print "$k->{Content}\n" if exists $k->{Content} and
                                    $k->{Content} !~ /to have no content$/ and
-                                   $k->{Type} ne 'EmailRecord';
+                                   ($k->{Type}||'') ne 'EmailRecord';
         print "$k->{Attachments}\n" if exists $k->{Attachments} and
                                    $k->{Attachments};
     }

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


More information about the Rt-commit mailing list