[Rt-commit] r7011 - in rt/branches/3.7-EXPERIMENTAL-RTIR-2.2: .

ruz at bestpractical.com ruz at bestpractical.com
Wed Feb 14 16:17:03 EST 2007


Author: ruz
Date: Wed Feb 14 16:17:03 2007
New Revision: 7011

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

Log:
 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-RTIR-2.2/html/Ticket/Display.html
==============================================================================
--- rt/branches/3.7-EXPERIMENTAL-RTIR-2.2/html/Ticket/Display.html	(original)
+++ rt/branches/3.7-EXPERIMENTAL-RTIR-2.2/html/Ticket/Display.html	Wed Feb 14 16:17:03 2007
@@ -133,6 +133,13 @@
     }
 }
 
+$m->comp('/Elements/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,10 +155,6 @@
     @Actions = @{ delete $session{"Actions"} || [] };
 }
 
-$m->comp('/Elements/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