[Rt-commit] r7014 - in rt/branches/3.7-EXPERIMENTAL: .

ruz at bestpractical.com ruz at bestpractical.com
Wed Feb 14 16:26:09 EST 2007


Author: ruz
Date: Wed Feb 14 16:26:09 2007
New Revision: 7014

Modified:
   rt/branches/3.7-EXPERIMENTAL/   (props changed)
   rt/branches/3.7-EXPERIMENTAL/html/Ticket/Display.html

Log:
 r4569 at cubic-pc (orig r7011):  ruz | 2007-02-15 00:17:03 +0300
  r4566 at cubic-pc (orig r7008):  ruz | 2007-02-14 21:39:59 +0300
  * run callback before redirect as people are using it for updates
    when redirect hides all arguments we had
 


Modified: rt/branches/3.7-EXPERIMENTAL/html/Ticket/Display.html
==============================================================================
--- rt/branches/3.7-EXPERIMENTAL/html/Ticket/Display.html	(original)
+++ rt/branches/3.7-EXPERIMENTAL/html/Ticket/Display.html	Wed Feb 14 16:26:09 2007
@@ -133,6 +133,14 @@
     }
 }
 
+$m->callback(
+    CallbackName => 'BeforeDisplay',
+	TicketObj => \$TicketObj,
+    Tickets => \$Tickets,
+    Actions => \@Actions,
+    ARGSRef => \%ARGS,
+);
+
 # This code does automatic redirection if any updates happen. 
 # It doesn't work for the client.
 
@@ -148,14 +156,6 @@
     @Actions = @{ delete $session{"Actions"} || [] };
 }
 
-$m->callback(
-    CallbackName => 'BeforeDisplay',
-    TicketObj    => \$TicketObj,
-    Tickets      => \$Tickets,
-    ARGSRef      => \%ARGS,
-);
-
-
 my $attachments = $m->comp('Elements/FindAttachments', Ticket => $TicketObj, Tickets => $Tickets);
 my $attachment_content = $m->comp('Elements/LoadTextAttachments', Ticket => $TicketObj);
 


More information about the Rt-commit mailing list