[Rt-commit] rt branch, 4.2/fix-ie-cache-in-show-history, created. rt-4.1.6-327-g82b94f3
? sunnavy
sunnavy at bestpractical.com
Fri Mar 8 10:59:01 EST 2013
The branch, 4.2/fix-ie-cache-in-show-history has been created
at 82b94f31d6dcc3b7050ad0c38ae6b62797547b5f (commit)
- Log -----------------------------------------------------------------
commit 82b94f31d6dcc3b7050ad0c38ae6b62797547b5f
Author: sunnavy <sunnavy at bestpractical.com>
Date: Fri Mar 8 23:55:41 2013 +0800
add Time::HiRes::time() as a param in TicketHistory ajax load to avoid ie caching the response
diff --git a/share/html/Ticket/Elements/ClickToShowHistory b/share/html/Ticket/Elements/ClickToShowHistory
index f6de8c6..d348dca 100644
--- a/share/html/Ticket/Elements/ClickToShowHistory
+++ b/share/html/Ticket/Elements/ClickToShowHistory
@@ -57,7 +57,7 @@ $Ticket
my %params = %ARGS;
delete $params{Ticket};
-my $query = $m->comp('/Elements/QueryString', %params, id => $Ticket->id );
+my $query = $m->comp('/Elements/QueryString', %params, id => $Ticket->id, time => Time::HiRes::time());
my $url = RT->Config->Get('WebPath')."/Helpers/TicketHistory?$query";
my $display = RT->Config->Get('WebPath')."/Ticket/Display.html?ForceShowHistory=1;$query";
</%INIT>
diff --git a/share/html/Ticket/Elements/DelayShowHistory b/share/html/Ticket/Elements/DelayShowHistory
index 73c14cf..3e08bfb 100644
--- a/share/html/Ticket/Elements/DelayShowHistory
+++ b/share/html/Ticket/Elements/DelayShowHistory
@@ -76,7 +76,7 @@ delete $params{Ticket};
my $url = JSON::to_json(
RT->Config->Get('WebPath') . "/Helpers/TicketHistory?".
- $m->comp('/Elements/QueryString', %params, id => $Ticket->id ),
+ $m->comp('/Elements/QueryString', %params, id => $Ticket->id, time => Time::HiRes::time()),
{ allow_nonref => 1 }
);
</%INIT>
-----------------------------------------------------------------------
More information about the Rt-commit
mailing list