X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=rt%2Fshare%2Fhtml%2FTicket%2FHistory.html;h=95d5aace9fb9d1202d1d940f93f4ef4a17c1159b;hp=e0e0462da2768ddf723c374cfb71488a01df8d91;hb=44dd00a3ff974a17999e86e64488e996edc71e3c;hpb=fc6209f398899f0211cfcedeb81a3cd65e04a941 diff --git a/rt/share/html/Ticket/History.html b/rt/share/html/Ticket/History.html index e0e0462da..95d5aace9 100755 --- a/rt/share/html/Ticket/History.html +++ b/rt/share/html/Ticket/History.html @@ -2,7 +2,7 @@ %# %# COPYRIGHT: %# -%# This software is Copyright (c) 1996-2011 Best Practical Solutions, LLC +%# This software is Copyright (c) 1996-2019 Best Practical Solutions, LLC %# %# %# (Except where explicitly superseded by other copyright notices) @@ -45,25 +45,23 @@ %# those contributions and any derivatives thereof. %# %# END BPS TAGGED BLOCK }}} -<& /Elements/Header, Title => loc("Ticket History # [_1] [_2]", $Ticket->Id, $Ticket->Subject) &> -<& /Ticket/Elements/Tabs, - Ticket => $Ticket, current_tab => 'Ticket/History.html?id='.$Ticket->id, - Title => loc("Ticket History # [_1] [_2]", $Ticket->Id, $Ticket->Subject) &> +<& /Elements/Header, Title => loc("Ticket History #[_1]: [_2]", $Ticket->Id, $Ticket->Subject) &> +<& /Elements/Tabs &> % $m->callback( %ARGS, Ticket => $Ticket, CallbackName => 'BeforeActionList' );
-<& /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, current_tab => 'Ticket/History.html?id=' . $Ticket->id ); +% $m->callback( %ARGS, CallbackName => 'AfterShowHistory', Ticket => $Ticket ); <%ARGS> $id => undef @@ -79,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;