[Rt-commit] [rtir] 01/01: Make "Jump to unread" work

Kevin Falcone falcone at bestpractical.com
Thu Jul 17 17:22:18 EDT 2014


This is an automated email from the git hooks/post-receive script.

falcone pushed a commit to branch 3.0/display-mark-as-seen
in repository rtir.

commit 747a6150f37c97a5be6ee610b149aef845549488
Author: Kevin Falcone <falcone at bestpractical.com>
Date:   Thu Jul 17 17:20:34 2014 -0400

    Make "Jump to unread" work
    
    Without this and 4.0/updatestatus-displaypath, Jump to unread will link
    to /Ticket/Display.html?id=7#txn-id=foo but during the redirect to
    /RTIR/Display.html the anchor is lost and the page never moves.  You can
    click the link all you want.
    
    Mark as read and jump works because it passes the Anchor in an argument
    which is respected in MaybeRedirectForResults.
---
 html/RTIR/Display.html          | 2 +-
 html/RTIR/Incident/Display.html | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/html/RTIR/Display.html b/html/RTIR/Display.html
index e6fbedd..bbf4cd5 100644
--- a/html/RTIR/Display.html
+++ b/html/RTIR/Display.html
@@ -51,7 +51,7 @@
 % $m->callback(CallbackName => 'BeforeActionList', %ARGS, Actions => \@results, ARGSRef => \%ARGS, Ticket => $Ticket);
 
 <& /Elements/ListActions, actions => \@results &>
-<& /Ticket/Elements/ShowUpdateStatus, Ticket => $Ticket &>
+<& /Ticket/Elements/ShowUpdateStatus, Ticket => $Ticket, DisplayPath => 'RTIR' &>
 
 <div class="summary"><&| /Widgets/TitleBox, title => loc('Ticket metadata') &>
 
diff --git a/html/RTIR/Incident/Display.html b/html/RTIR/Incident/Display.html
index 3c20afb..18bd1c1 100644
--- a/html/RTIR/Incident/Display.html
+++ b/html/RTIR/Incident/Display.html
@@ -50,7 +50,7 @@
     
 % $m->callback(CallbackName => 'BeforeActionList', %ARGS, Actions => \@results, ARGSRef => \%ARGS, Ticket => $TicketObj);
 <& /Elements/ListActions, actions => \@results &>
-<& /Ticket/Elements/ShowUpdateStatus, Ticket => $TicketObj &>
+<& /Ticket/Elements/ShowUpdateStatus, Ticket => $TicketObj, DisplayPath => 'RTIR'  &>
 
 <div class="summary"><&| /Widgets/TitleBox, title => loc('Ticket metadata') &>
 <table class="ticket-summary" width="100%"><tr><td class="boxcontainer" valign="top">

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the rt-commit mailing list