[rt-users] EditCustomFieldsOnUpdate does not work anymore

Todd Chapman todd at chaka.net
Tue Jul 25 15:15:20 EDT 2006


Attached is my diff for Display.html. It should allow
the callback to start working again.

-Todd
-------------- next part --------------
--- html/Ticket/Display.html	(revision 8005)
+++ html/Ticket/Display.html	(local)
@@ -148,6 +148,9 @@
     push (@Actions, @BasicActions, @results);
 }
 
+$m->comp('/Elements/Callback', _CallbackName => 'BeforeDisplay',
+	 TicketObj => \$TicketObj, Tickets => \$Tickets, ARGSRef => \%ARGS, Actions => \@Actions );
+
 # This code does automatic redirection if any updates happen. 
 
 if (@Actions) {
@@ -161,10 +164,7 @@
     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);
 
=== html/Ticket/Display.html
==================================================================


More information about the rt-users mailing list