rt 4.2.14 (#13852)
[freeside.git] / rt / share / html / Ticket / History.html
index afc174f..b52279c 100755 (executable)
@@ -2,7 +2,7 @@
 %#
 %# COPYRIGHT:
 %#
-%# This software is Copyright (c) 1996-2012 Best Practical Solutions, LLC
+%# This software is Copyright (c) 1996-2017 Best Practical Solutions, LLC
 %#                                          <sales@bestpractical.com>
 %#
 %# (Except where explicitly superseded by other copyright notices)
 
 <br />
       
-<& /Ticket/Elements/ShowHistory , 
-    Ticket => $Ticket, 
+<& /Elements/ShowHistory,
+    Object => $Ticket,
     ShowHeaders => $ARGS{'ShowHeaders'}, 
-    URIFile => 'History.html', 
     Attachments => $attachments,
-    AttachmentContent => $attachment_content
+    AttachmentContent => $attachment_content,
+    DisplayPath => 'History.html',
     &> 
 
 % $m->callback( %ARGS, CallbackName => 'AfterShowHistory', Ticket => $Ticket );
@@ -77,9 +77,8 @@ unless ($Ticket->CurrentUserHasRight('ShowTicket')) {
     Abort("No permission to view ticket");
 }
 
-my $attachments = $m->comp('Elements/FindAttachments', Ticket => $Ticket);
-my $attachment_content = $m->comp('Elements/LoadTextAttachments', Ticket =>
-$Ticket);
+my $attachments = $Ticket->Attachments;
+my $attachment_content = $Ticket->TextAttachments;
 
 
 </%INIT>