[Rt-commit] r6850 - in rt/branches/3.7-EXPERIMENTAL-RTIR-2.2: html

ruz at bestpractical.com ruz at bestpractical.com
Fri Jan 26 14:02:13 EST 2007


Author: ruz
Date: Fri Jan 26 14:02:13 2007
New Revision: 6850

Modified:
   rt/branches/3.7-EXPERIMENTAL-RTIR-2.2/   (props changed)
   rt/branches/3.7-EXPERIMENTAL-RTIR-2.2/html/autohandler

Log:
 r4345 at cubic-pc (orig r6712):  jesse | 2007-01-08 23:55:52 +0300
  r46859 at pinglin:  jesse | 2007-01-08 15:55:35 -0500
  The autohandler should *redirect* unprivileged users from                                                               
  Ticket/Display.html to the Self-Service interface. Current code displays                                                
  SS page under non-SS URL, which causes the "Reply" links to go to                                                       
  Ticket/Update.html, which in turn displays the SS home page.                                                            
  -David Chandek-Stark <david.chandek.stark at duke.edu>
 


Modified: rt/branches/3.7-EXPERIMENTAL-RTIR-2.2/html/autohandler
==============================================================================
--- rt/branches/3.7-EXPERIMENTAL-RTIR-2.2/html/autohandler	(original)
+++ rt/branches/3.7-EXPERIMENTAL-RTIR-2.2/html/autohandler	Fri Jan 26 14:02:13 2007
@@ -274,12 +274,12 @@
     if (    $m->request_comp->path =~ '^(/+)Ticket/Display.html'
          && $ARGS{'id'} )
     {
-        $m->comp("/SelfService/Display.html", %ARGS);
+        RT::Interface::Web::Redirect( RT->Config->Get('WebURL') ."SelfService/Display.html?id=".$ARGS{'id'});
     }
 
     # otherwise, drop the user at the SelfService default page
     elsif ( $m->base_comp->path !~ '^(/+)SelfService/' ) {
-        $m->comp('/SelfService/index.html');
+        RT::Interface::Web::Redirect( RT->Config->Get('WebURL') ."SelfService/" );
     }
     # if user is in SelfService dir let him do anything
     else {


More information about the Rt-commit mailing list