summaryrefslogtreecommitdiff
path: root/rt/share/html/Helpers/TicketHistory
diff options
context:
space:
mode:
Diffstat (limited to 'rt/share/html/Helpers/TicketHistory')
-rw-r--r--rt/share/html/Helpers/TicketHistory23
1 files changed, 12 insertions, 11 deletions
diff --git a/rt/share/html/Helpers/TicketHistory b/rt/share/html/Helpers/TicketHistory
index 91c975c..433508d 100644
--- a/rt/share/html/Helpers/TicketHistory
+++ b/rt/share/html/Helpers/TicketHistory
@@ -52,16 +52,17 @@ $id
my $TicketObj = RT::Ticket->new($session{'CurrentUser'});
$TicketObj->Load($id);
-my $attachments = $m->comp('/Ticket/Elements/FindAttachments', Ticket => $TicketObj);
-my $attachment_content = $m->comp('/Ticket/Elements/LoadTextAttachments', Ticket => $TicketObj);
-
-$m->comp('/Ticket/Elements/ShowHistory',
- Ticket => $TicketObj,
- Collapsed => $ARGS{'Collapsed'},
+my $attachments = $TicketObj->Attachments;
+my $attachment_content = $TicketObj->TextAttachments;
+my %extra_args;
+$m->callback( CallbackName => 'ExtraShowHistoryArguments', Ticket => $TicketObj, ExtraArgs => \%extra_args );
+</%INIT>
+<& /Elements/ShowHistory,
+ Object => $TicketObj,
ShowHeaders => $ARGS{'ShowHeaders'},
Attachments => $attachments,
- AttachmentContent => $attachment_content
-);
-
-$m->abort();
-</%INIT>
+ AttachmentContent => $attachment_content,
+ %extra_args,
+ &>
+<script type="text/javascript">ReplaceUserReferences()</script>
+% $m->abort();