X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=rt%2Fshare%2Fhtml%2FHelpers%2FTicketHistory;h=b48a290963bfd4bc773bafb5a844fb7a2ffa0f39;hb=7322f2afedcc2f427e997d1535a503613a83f088;hp=357ee8f9655d9c65ff151e791266bcb3c8772077;hpb=a6fe07e49e3fc12169e801b1ed6874c3a5bd8500;p=freeside.git diff --git a/rt/share/html/Helpers/TicketHistory b/rt/share/html/Helpers/TicketHistory index 357ee8f96..b48a29096 100644 --- a/rt/share/html/Helpers/TicketHistory +++ b/rt/share/html/Helpers/TicketHistory @@ -2,7 +2,7 @@ %# %# COPYRIGHT: %# -%# This software is Copyright (c) 1996-2012 Best Practical Solutions, LLC +%# This software is Copyright (c) 1996-2016 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();