[Rt-commit] rt branch, 4.0/updatestatus-displaypath, created. rt-4.0.21-4-gd84a612

Kevin Falcone falcone at bestpractical.com
Thu Jul 17 17:20:25 EDT 2014


The branch, 4.0/updatestatus-displaypath has been created
        at  d84a612d50489e393e3ddf2044f10eff7ede224d (commit)

- Log -----------------------------------------------------------------
commit d84a612d50489e393e3ddf2044f10eff7ede224d
Author: Kevin Falcone <falcone at bestpractical.com>
Date:   Thu Jul 17 17:13:41 2014 -0400

    Expose DisplayPath in ShowUpdateStatus
    
    RTIR uses this to show the Unread Status on Incidents/IRs/etc
    but RTIR tickets live in /RTIR/Display.html.  This linked to
    /Ticket/Display.html?id=7#txn-id but we couldn't get and retain the
    txn-id easily during the redirect to /RTIR/Display.html.  Instead, let
    RTIR or another extension change where the link points on certain
    tickets.
    
    Part of the solution for issues #17450

diff --git a/share/html/Ticket/Elements/ShowUpdateStatus b/share/html/Ticket/Elements/ShowUpdateStatus
index 21713a4..43b51b5 100644
--- a/share/html/Ticket/Elements/ShowUpdateStatus
+++ b/share/html/Ticket/Elements/ShowUpdateStatus
@@ -56,10 +56,10 @@
 </div>
 <%ARGS>
 $Ticket
+$DisplayPath => $session{'CurrentUser'}->Privileged ? 'Ticket' : 'SelfService'
 </%ARGS>
 <%INIT>
 return unless (RT->Config->Get( 'ShowUnreadMessageNotifications', $session{'CurrentUser'}));
 my $txn = $Ticket->SeenUpTo or return;
 
-my $DisplayPath = $session{'CurrentUser'}->Privileged ? 'Ticket' : 'SelfService';
 </%INIT>

-----------------------------------------------------------------------


More information about the rt-commit mailing list