[rt-devel] [PATCH] ShowTransaction patch

Blair Zajac blair at orcaware.com
Wed Jan 9 19:17:47 EST 2002


This patch fixes a small problem with printing a message.  It checks if the
message is true, not if it has length, so a message containing 0 will not
be printed.

Blair

-- 
Blair Zajac <blair at orcaware.com>
Web and OS performance plots - http://www.orcaware.com/orca/
-------------- next part --------------
--- webrt/Ticket/Elements/ShowTransaction.0	Mon Dec 17 10:04:29 2001
+++ webrt/Ticket/Elements/ShowTransaction	Wed Jan  9 14:52:06 2002
@@ -14,9 +14,9 @@
  $attachments->GotoFirstItem;
  while (my $message=$attachments->Next) {
      #we don't want to show any empty transactions, unless they have kids
-     next unless ($message->Content || $message->Children->Count);
+     next unless (length $message->Content || $message->Children->Count);
      my ($headers, $content);
-     
+
     </%PERL>
 
 


More information about the Rt-devel mailing list