[Bps-public-commit] r19103 - in RT-FormTools: .

falcone at bestpractical.com falcone at bestpractical.com
Wed Apr 8 11:57:47 EDT 2009


Author: falcone
Date: Wed Apr  8 11:57:46 2009
New Revision: 19103

Modified:
   RT-FormTools/   (props changed)
   RT-FormTools/html/FormTools/Field

Log:
 r46334 at ketch:  falcone | 2009-04-08 11:57:40 -0400
 * if we have a Ticket, we want to associate the CF that we're
   editing with that ticket, rather than with an uncreated ticket


Modified: RT-FormTools/html/FormTools/Field
==============================================================================
--- RT-FormTools/html/FormTools/Field	(original)
+++ RT-FormTools/html/FormTools/Field	Wed Apr  8 11:57:46 2009
@@ -13,6 +13,9 @@
 my $NamePrefix = "Object-RT::Ticket--CustomField-";
 my $queue      = $m->notes('queue');
 my $ticket     = $m->notes('ticket');
+if ($ticket && $ticket->Id) {
+    $NamePrefix = "Object-RT::Ticket-".$ticket->Id."-CustomField-";
+}
 my $field_type = 'custom';
 my $field_label ||= $label;
 my $cf;



More information about the Bps-public-commit mailing list