rt 4.2.16
[freeside.git] / rt / share / html / Helpers / TicketHistory
index 357ee8f..075598b 100644 (file)
@@ -2,7 +2,7 @@
 %#
 %# COPYRIGHT:
 %#
-%# This software is Copyright (c) 1996-2012 Best Practical Solutions, LLC
+%# This software is Copyright (c) 1996-2019 Best Practical Solutions, LLC
 %#                                          <sales@bestpractical.com>
 %#
 %# (Except where explicitly superseded by other copyright notices)
@@ -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();