X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=rt%2Fshare%2Fhtml%2FHelpers%2FTicketHistory;h=433508d6bcc009ee85adac2eb65339fc1583fd9b;hb=1c538bfabc2cd31f27067505f0c3d1a46cba6ef0;hp=97864d4122d09066ff096dc71b65cf18a7983e70;hpb=45d35d5739d05e602bc317739485693e0e9ff0b5;p=freeside.git diff --git a/rt/share/html/Helpers/TicketHistory b/rt/share/html/Helpers/TicketHistory index 97864d412..433508d6b 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-2015 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();