Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Request Tracker: Commit

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

 

 

Request Tracker commit RSS feed   Index | Next | Previous | View Threaded


sunnavy at bestpractical

Mar 1, 2012, 10:00 AM

Post #1 of 1 (133 views)
Permalink
rt branch, 4.0/cli-show-ticket-attachment-uninitialized-warning-fix, created. rt-4.0.5-79-gb4363c1

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>
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};
}

-----------------------------------------------------------------------
_______________________________________________
Rt-commit mailing list
Rt-commit [at] lists
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-commit

Request Tracker commit RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.