[Rt-commit] r7488 - in rt/branches/3.7-EXPERIMENTAL: .

jesse at bestpractical.com jesse at bestpractical.com
Thu Apr 12 03:09:57 EDT 2007


Author: jesse
Date: Thu Apr 12 03:09:48 2007
New Revision: 7488

Modified:
   rt/branches/3.7-EXPERIMENTAL/   (props changed)
   rt/branches/3.7-EXPERIMENTAL/html/Ticket/Elements/ShowMessageStanza
   rt/branches/3.7-EXPERIMENTAL/html/Ticket/Elements/ShowTransactionAttachments

Log:
 r54776 at pinglin:  jesse | 2007-04-12 03:01:42 -0400
 * Cut down some warnings


Modified: rt/branches/3.7-EXPERIMENTAL/html/Ticket/Elements/ShowMessageStanza
==============================================================================
--- rt/branches/3.7-EXPERIMENTAL/html/Ticket/Elements/ShowMessageStanza	(original)
+++ rt/branches/3.7-EXPERIMENTAL/html/Ticket/Elements/ShowMessageStanza	Thu Apr 12 03:09:48 2007
@@ -47,7 +47,7 @@
 <div class="message-stanza-depth-<% $Depth %>">
 <%perl>
 my $para = '';
-foreach my $stanza (@$Message) {
+foreach my $stanza ( @$Message) {
     if ( ref $stanza eq "ARRAY" ) {
         $print_content->( \$para ); $para = '';
         $m->comp( 'ShowMessageStanza',
@@ -56,7 +56,7 @@
                   Message => $stanza );
     }
     elsif ( ref $stanza eq "HASH" ) {
-        $para .= $stanza->{raw};
+        $para .= ($stanza->{raw}||'');
     }
 }
 $print_content->( \$para ) if length $para;

Modified: rt/branches/3.7-EXPERIMENTAL/html/Ticket/Elements/ShowTransactionAttachments
==============================================================================
--- rt/branches/3.7-EXPERIMENTAL/html/Ticket/Elements/ShowTransactionAttachments	(original)
+++ rt/branches/3.7-EXPERIMENTAL/html/Ticket/Elements/ShowTransactionAttachments	Thu Apr 12 03:09:48 2007
@@ -56,11 +56,12 @@
     if ( $size ) {
 </%PERL>
 <div class="downloadattachment">
-<a href="<% $AttachPath %>/<% $Transaction->Id %>/<% $message->Id %>/<% $message->Filename | u%>">
+<a href="<% $AttachPath %>/<% $Transaction->Id %>/<% $message->Id %>/<% ($message->Filename ||'')| u%>">
 <&|/l&>Download</&> <% $message->Filename || loc('(untitled)') %></a>
 % if ( !$message->Filename && $message->ContentType =~ /text/ ) {
 <span>[<a href="<% $AttachPath %>/WithHeaders/<% $message->Id %>"><% loc('with headers') %></a>]</span>
 % }
+<br/>
 <span class="downloadcontenttype">[<% $message->ContentType %> <% $size_to_str->( $size ) %>]</span>
 </div>
 %   }


More information about the Rt-commit mailing list