[Rt-commit] r3914 - in rt/branches/CHALDEA-EXPERIMENTAL: . lib/RT

jesse at bestpractical.com jesse at bestpractical.com
Wed Oct 5 14:48:56 EDT 2005


Author: jesse
Date: Wed Oct  5 14:48:55 2005
New Revision: 3914

Modified:
   rt/branches/CHALDEA-EXPERIMENTAL/   (props changed)
   rt/branches/CHALDEA-EXPERIMENTAL/lib/RT/Transaction_Overlay.pm
Log:
 r17066 at hualien:  jesse | 2005-10-05 10:39:06 -0400
  r15969 at hualien:  jesse | 2005-09-23 15:36:13 -0400
  * Algorithm for picking transaction content didn't have a reasonable enough fallback case.
 


Modified: rt/branches/CHALDEA-EXPERIMENTAL/lib/RT/Transaction_Overlay.pm
==============================================================================
--- rt/branches/CHALDEA-EXPERIMENTAL/lib/RT/Transaction_Overlay.pm	(original)
+++ rt/branches/CHALDEA-EXPERIMENTAL/lib/RT/Transaction_Overlay.pm	Wed Oct  5 14:48:55 2005
@@ -330,7 +330,6 @@
 =cut
 
 
-
 sub ContentObj {
 
     my $self = shift;
@@ -361,11 +360,12 @@
             return ( $plain_parts->First );
         }
 
+
         # If that fails, return the  first text/plain or message/ part
         # which has some content.
 
         else {
-            my $all_parts = $Attachment->Children();
+            my $all_parts = $self->Attachments();
             while ( my $part = $all_parts->Next ) {
                 if (( $part->ContentType() =~ '^(text/plain$|message/)' ) &&  $part->Content()  ) {
                     return ($part);


More information about the Rt-commit mailing list