X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=rt%2Fshare%2Fhtml%2FHelpers%2FTicketHistory;h=671b22d85c738a5d716188e02172b4a0d8718552;hb=187086c479a09629b7d180eec513fb7657f4e291;hp=97864d4122d09066ff096dc71b65cf18a7983e70;hpb=e9e0cf0989259b94d9758eceff448666a2e5a5cc;p=freeside.git diff --git a/rt/share/html/Helpers/TicketHistory b/rt/share/html/Helpers/TicketHistory index 97864d412..671b22d85 100644 --- a/rt/share/html/Helpers/TicketHistory +++ b/rt/share/html/Helpers/TicketHistory @@ -2,7 +2,7 @@ %# %# COPYRIGHT: %# -%# This software is Copyright (c) 1996-2014 Best Practical Solutions, LLC +%# This software is Copyright (c) 1996-2018 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();