Permalink
Browse files

The Ajaxy Reply page could cause RT to throw errors when users try to…

… create a ticket with custom field values
  • Loading branch information...
1 parent 93af2d9 commit 318257ad79876a977355b3cd3bcd030b863dd196 @obra obra committed Nov 3, 2009
Showing with 4 additions and 3 deletions.
  1. +4 −3 html/Callbacks/RT-AjaxyReplyPage/Ticket/Display.html/BeforeDisplay
@@ -3,9 +3,10 @@ $TicketObj
$ARGSRef
</%args>
<%init>
+return if $ARGSRef->{id} eq 'new';
return unless $TicketObj;
-$TicketObj = $$TicketObj;
-return unless ($TicketObj and $TicketObj->id);
-ProcessObjectCustomFieldUpdates(Object => $TicketObj, ARGSRef => $ARGSRef);
+my $t = $$TicketObj;
+return unless ($t and $t->id);
+ProcessObjectCustomFieldUpdates(Object => $t, ARGSRef => $ARGSRef);
</%init>

0 comments on commit 318257a

Please sign in to comment.