[Bps-public-commit] RT-AjaxyReplyPage branch, master, updated. 318257ad79876a977355b3cd3bcd030b863dd196
jesse
jesse at bestpractical.com
Mon Dec 28 12:23:51 EST 2009
The branch, master has been updated
via 318257ad79876a977355b3cd3bcd030b863dd196 (commit)
from 93af2d9c4088ee7ba08651d094eb74aa252a2b2e (commit)
Summary of changes:
.../Ticket/Display.html/BeforeDisplay | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
- Log -----------------------------------------------------------------
commit 318257ad79876a977355b3cd3bcd030b863dd196
Author: Jesse Vincent <jesse at bestpractical.com>
Date: Tue Nov 3 12:26:31 2009 -0500
The Ajaxy Reply page could cause RT to throw errors when users try to create a ticket with custom field values
diff --git a/html/Callbacks/RT-AjaxyReplyPage/Ticket/Display.html/BeforeDisplay b/html/Callbacks/RT-AjaxyReplyPage/Ticket/Display.html/BeforeDisplay
index f14838a..3f6734a 100644
--- a/html/Callbacks/RT-AjaxyReplyPage/Ticket/Display.html/BeforeDisplay
+++ b/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>
-----------------------------------------------------------------------
More information about the Bps-public-commit
mailing list