[Rt-commit] r20054 - rt/3.8/trunk/share/html/Ticket/Elements
sunnavy at bestpractical.com
sunnavy at bestpractical.com
Thu Jun 25 04:44:51 EDT 2009
Author: sunnavy
Date: Thu Jun 25 04:44:51 2009
New Revision: 20054
Modified:
rt/3.8/trunk/share/html/Ticket/Elements/EditCustomFields
Log:
add OnCreate for EditCustomFields: sometimes we have $TicketObj->Id but we still want to create ticket, e.g. when splitting ticket
Modified: rt/3.8/trunk/share/html/Ticket/Elements/EditCustomFields
==============================================================================
--- rt/3.8/trunk/share/html/Ticket/Elements/EditCustomFields (original)
+++ rt/3.8/trunk/share/html/Ticket/Elements/EditCustomFields Thu Jun 25 04:44:51 2009
@@ -86,7 +86,7 @@
<%INIT>
my $CustomFields;
-if ($TicketObj) {
+if ($TicketObj && !$OnCreate) {
$CustomFields = $TicketObj->CustomFields();
$NamePrefix .= "Object-RT::Ticket-".$TicketObj->Id."-CustomField-";
} else {
@@ -101,4 +101,5 @@
$NamePrefix => ''
$TicketObj => undef
$QueueObj => undef
+$OnCreate => undef
</%ARGS>
More information about the Rt-commit
mailing list