summaryrefslogtreecommitdiff
path: root/rt/html/Ticket
diff options
context:
space:
mode:
authorivan <ivan>2006-10-17 08:51:01 +0000
committerivan <ivan>2006-10-17 08:51:01 +0000
commitc8cccb4a92adceb943c635fe62dad0d034462ce0 (patch)
tree0a33472e21f5174091e49e245f5bd68a235d4d50 /rt/html/Ticket
parentacd0f14d8f619055b4292c178b14682974fb0099 (diff)
parenta513c0bef534d05f03c1242831b6f3be19b97dae (diff)
This commit was generated by cvs2svn to compensate for changes in r4888,
which included commits to RCS files with non-trunk default branches.
Diffstat (limited to 'rt/html/Ticket')
-rw-r--r--rt/html/Ticket/Elements/EditCustomFields3
-rw-r--r--rt/html/Ticket/Elements/ShowTransactionAttachments9
2 files changed, 9 insertions, 3 deletions
diff --git a/rt/html/Ticket/Elements/EditCustomFields b/rt/html/Ticket/Elements/EditCustomFields
index d566f4e71..6ae188fa7 100644
--- a/rt/html/Ticket/Elements/EditCustomFields
+++ b/rt/html/Ticket/Elements/EditCustomFields
@@ -91,7 +91,8 @@ if ($TicketObj) {
$NamePrefix = "Object-RT::Ticket--CustomField-";
}
-
+ $m->comp('/Elements/Callback', _CallbackName => 'MassageCustomFields',
+ CustomFields => $CustomFields);
</%INIT>
<%ARGS>
diff --git a/rt/html/Ticket/Elements/ShowTransactionAttachments b/rt/html/Ticket/Elements/ShowTransactionAttachments
index 8dabff421..d9e94ffa2 100644
--- a/rt/html/Ticket/Elements/ShowTransactionAttachments
+++ b/rt/html/Ticket/Elements/ShowTransactionAttachments
@@ -89,13 +89,13 @@ foreach my $message ( grep { $_->Parent == $Parent } @$Attachments ) {
<div class="messagebody">
<%perl>
# {{{ if it has a content-disposition: attachment, don't show inline
-unless ( $message->GetHeader('Content-Disposition') =~ /attachment/i ) {
+unless ( ($message->GetHeader('Content-Disposition')||"") =~ /attachment/i ) {
my $content;
# If it's text
if ( $message->ContentType =~ m{^(text|message)}i
- && $size <= $RT::MaxInlineBody )
+ && $message->ContentLength <= $RT::MaxInlineBody )
{
if (
@@ -158,6 +158,11 @@ unless ( $message->GetHeader('Content-Disposition') =~ /attachment/i ) {
. $message->Id
. '/">' );
}
+ elsif ( $message->ContentLength > 0 ) {
+ $m->out(
+ loc( 'Message body not shown because it is too large or is not plain text.' )
+ );
+ }
}
# }}}