[Rt-commit] r7008 - rt/branches/3.6-RELEASE/html/Ticket

ruz at bestpractical.com ruz at bestpractical.com
Wed Feb 14 13:39:59 EST 2007


Author: ruz
Date: Wed Feb 14 13:39:59 2007
New Revision: 7008

Modified:
   rt/branches/3.6-RELEASE/html/Ticket/Display.html

Log:
* run callback before redirect as people are using it for updates
  when redirect hides all arguments we had

Modified: rt/branches/3.6-RELEASE/html/Ticket/Display.html
==============================================================================
--- rt/branches/3.6-RELEASE/html/Ticket/Display.html	(original)
+++ rt/branches/3.6-RELEASE/html/Ticket/Display.html	Wed Feb 14 13:39:59 2007
@@ -154,6 +154,13 @@
     push (@Actions, @PeopleActions, @BasicActions, @results);
 }
 
+$m->comp('/Elements/Callback', _CallbackName => 'BeforeDisplay',
+	 TicketObj => \$TicketObj,
+     Tickets => \$Tickets,
+     Actions => \@Actions,
+     ARGSRef => \%ARGS,
+);
+
 # This code does automatic redirection if any updates happen. 
 
 if (@Actions) {
@@ -166,10 +173,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