[Rt-commit] r3314 - in rt/branches/CHALDEA-EXPERIMENTAL: . html/Ticket

jesse at bestpractical.com jesse at bestpractical.com
Sun Jul 3 18:07:47 EDT 2005


Author: jesse
Date: Sun Jul  3 18:07:47 2005
New Revision: 3314

Modified:
   rt/branches/CHALDEA-EXPERIMENTAL/   (props changed)
   rt/branches/CHALDEA-EXPERIMENTAL/html/Ticket/Display.html
Log:
 r22129 at hualien:  jesse | 2005-07-03 17:47:23 -0400
  r20551 at hualien:  jesse | 2005-06-15 16:12:50 -0400
  * Reenabled testing redirect on article update
 


Modified: rt/branches/CHALDEA-EXPERIMENTAL/html/Ticket/Display.html
==============================================================================
--- rt/branches/CHALDEA-EXPERIMENTAL/html/Ticket/Display.html	(original)
+++ rt/branches/CHALDEA-EXPERIMENTAL/html/Ticket/Display.html	Sun Jul  3 18:07:47 2005
@@ -148,17 +148,16 @@
 # This code does automatic redirection if any updates happen. 
 # It doesn't work for the client.
 
-if (0) {
 
 
-$RT::Logger->crit("About to check for actions");
+$RT::Logger->crit("About to check for actions to prepare for a redirect");
 if (@Actions) {
     $RT::Logger->crit("We have actions. time to redirect"); 
     # We've done something, so we need to clear the decks to avoid 
     # resubmission on refresh.
     # But we need to store Actions somewhere too, so we don't lose them.
     $session{"Actions"} = \@Actions;
-    $m->redirect($RT::WebPath."/Ticket/Display.html?id=".$TicketObj->id);
+    $m->redirect($RT::WebURL."/Ticket/Display.html?id=".$TicketObj->id);
     $RT::Logger->crit("Set up the redirect");
     $m->abort();
     $RT::Logger->crit("Aborted. Should never be called");
@@ -170,7 +169,6 @@
 
 $RT::Logger->crit("We're past the point where any redirect happens");
 
-}
 
 $m->comp('/Elements/Callback', _CallbackName => 'BeforeDisplay',
 	 TicketObj => \$TicketObj, Tickets => \$Tickets, ARGSRef => \%ARGS);


More information about the Rt-commit mailing list