summaryrefslogtreecommitdiff
path: root/rt/share/html/Ticket/Elements/ClickToShowHistory
diff options
context:
space:
mode:
Diffstat (limited to 'rt/share/html/Ticket/Elements/ClickToShowHistory')
-rw-r--r--rt/share/html/Ticket/Elements/ClickToShowHistory11
1 files changed, 7 insertions, 4 deletions
diff --git a/rt/share/html/Ticket/Elements/ClickToShowHistory b/rt/share/html/Ticket/Elements/ClickToShowHistory
index 3b547b916..47a08f2c0 100644
--- a/rt/share/html/Ticket/Elements/ClickToShowHistory
+++ b/rt/share/html/Ticket/Elements/ClickToShowHistory
@@ -46,7 +46,7 @@
%#
%# END BPS TAGGED BLOCK }}}
<div id="deferred_ticket_history">
- <& /Widgets/TitleBoxStart, title => 'History' &>
+ <& /Widgets/TitleBoxStart, title => loc('History') &>
<a href="<% $display %>" onclick="jQuery('#deferred_ticket_history').text(<% loc('Loading...') |n,j%>).load(<% $url |n,j %>); return false;" ><% loc('Show ticket history') %></a>
<& /Widgets/TitleBoxEnd &>
</div>
@@ -54,7 +54,10 @@
$Ticket
</%ARGS>
<%INIT>
-my $id = $Ticket->id;
-my $url = RT->Config->Get('WebPath') ."/Helpers/TicketHistory?id=". $id;
-my $display = RT->Config->Get('WebPath') ."/Ticket/Display.html?id=$id;ForceShowHistory=1";
+my %params = %ARGS;
+delete $params{Ticket};
+
+my $query = $m->comp('/Elements/QueryString', %params, id => $Ticket->id );
+my $url = RT->Config->Get('WebPath')."/Helpers/TicketHistory?$query";
+my $display = RT->Config->Get('WebPath')."/Ticket/Display.html?ForceShowHistory=1;$query";
</%INIT>