[Rt-commit] r4010 - rt/branches/3.4-RELEASE/html/Ticket/Elements
pdh at bestpractical.com
pdh at bestpractical.com
Mon Oct 31 19:21:58 EST 2005
Author: pdh
Date: Mon Oct 31 19:21:57 2005
New Revision: 4010
Modified:
rt/branches/3.4-RELEASE/html/Ticket/Elements/ShowTransactionAttachments
Log:
Make $RT::MaxInlineBody work properly.
Modified: rt/branches/3.4-RELEASE/html/Ticket/Elements/ShowTransactionAttachments
==============================================================================
--- rt/branches/3.4-RELEASE/html/Ticket/Elements/ShowTransactionAttachments (original)
+++ rt/branches/3.4-RELEASE/html/Ticket/Elements/ShowTransactionAttachments Mon Oct 31 19:21:57 2005
@@ -95,7 +95,7 @@
# If it's text
if ( $message->ContentType =~ m{^(text|message)}i
- && $size <= $RT::MaxInlineBody )
+ && $message->ContentLength <= $RT::MaxInlineBody )
{
if (
@@ -158,6 +158,11 @@
. $message->Id
. '/">' );
}
+ elsif ( $message->ContentLength > 0 ) {
+ $m->out(
+ loc( 'Message body not shown because it is too large or is not plain text.' )
+ );
+ }
}
# }}}
More information about the Rt-commit
mailing list