import rt 3.4.5
[freeside.git] / rt / lib / RT / Transaction_Overlay.pm
index b179084..f6647c6 100644 (file)
@@ -365,7 +365,7 @@ sub ContentObj {
         # 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);