X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=rt%2Fshare%2Fhtml%2FHelpers%2FTicketHistory;h=075598be12c9fb3c50e6cccd59d17ad828a48d50;hp=91c975c2330e20af117b0490a4f160c1f3899014;hb=44dd00a3ff974a17999e86e64488e996edc71e3c;hpb=73a6a80a9ca5edbd43d139b7cb25bfee4abfd35e diff --git a/rt/share/html/Helpers/TicketHistory b/rt/share/html/Helpers/TicketHistory index 91c975c23..075598be1 100644 --- a/rt/share/html/Helpers/TicketHistory +++ b/rt/share/html/Helpers/TicketHistory @@ -2,7 +2,7 @@ %# %# COPYRIGHT: %# -%# This software is Copyright (c) 1996-2015 Best Practical Solutions, LLC +%# This software is Copyright (c) 1996-2019 Best Practical Solutions, LLC %# %# %# (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 ); + +<& /Elements/ShowHistory, + Object => $TicketObj, ShowHeaders => $ARGS{'ShowHeaders'}, Attachments => $attachments, - AttachmentContent => $attachment_content -); - -$m->abort(); - + AttachmentContent => $attachment_content, + %extra_args, + &> + +% $m->abort();