[Rt-commit] r3880 - in rt/branches/QUEBEC-EXPERIMENTAL: . lib/RT
jesse at bestpractical.com
jesse at bestpractical.com
Fri Sep 23 15:38:39 EDT 2005
Author: jesse
Date: Fri Sep 23 15:38:38 2005
New Revision: 3880
Modified:
rt/branches/QUEBEC-EXPERIMENTAL/ (props changed)
rt/branches/QUEBEC-EXPERIMENTAL/lib/RT/Transaction_Overlay.pm
Log:
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/QUEBEC-EXPERIMENTAL/lib/RT/Transaction_Overlay.pm
==============================================================================
--- rt/branches/QUEBEC-EXPERIMENTAL/lib/RT/Transaction_Overlay.pm (original)
+++ rt/branches/QUEBEC-EXPERIMENTAL/lib/RT/Transaction_Overlay.pm Fri Sep 23 15:38:38 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