[Rt-commit] r3925 - in rt/branches/3.5-TESTING: . lib/RT

jesse at bestpractical.com jesse at bestpractical.com
Wed Oct 5 15:23:30 EDT 2005


Author: jesse
Date: Wed Oct  5 15:23:30 2005
New Revision: 3925

Modified:
   rt/branches/3.5-TESTING/   (props changed)
   rt/branches/3.5-TESTING/lib/RT/Transaction_Overlay.pm
Log:
 r17083 at hualien:  jesse | 2005-10-05 11:08:43 -0400
  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/3.5-TESTING/lib/RT/Transaction_Overlay.pm
==============================================================================
--- rt/branches/3.5-TESTING/lib/RT/Transaction_Overlay.pm	(original)
+++ rt/branches/3.5-TESTING/lib/RT/Transaction_Overlay.pm	Wed Oct  5 15:23:30 2005
@@ -328,7 +328,6 @@
 =cut
 
 
-
 sub ContentObj {
 
     my $self = shift;
@@ -359,11 +358,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