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

sartak at bestpractical.com sartak at bestpractical.com
Thu Apr 9 03:30:38 EDT 2009


Author: sartak
Date: Thu Apr  9 03:30:37 2009
New Revision: 19106

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

Log:
 r81853 at onn:  sartak | 2009-04-09 03:28:24 -0400
 If we have a ticket, then we can construct a more useful name prefix


Modified: RT-FormTools/html/FormTools/Field
==============================================================================
--- RT-FormTools/html/FormTools/Field	(original)
+++ RT-FormTools/html/FormTools/Field	Thu Apr  9 03:30:37 2009
@@ -10,7 +10,6 @@
 </%args>
 <%init>
 use RT::Extension::FormTools;
-my $NamePrefix = "Object-RT::Ticket--CustomField-";
 my $queue      = $m->notes('queue');
 my $ticket     = $m->notes('ticket');
 if ($ticket && $ticket->Id) {
@@ -23,6 +22,10 @@
 $queue = $ticket->QueueObj
     if !$queue && $ticket;
 
+my $NamePrefix = "Object-RT::Ticket-"
+               . ($ticket ? $ticket->id : '')
+               . "-CustomField-";
+
 if ( RT::Extension::FormTools::is_core_field($name) ) {
     $field_type = 'core';
     my $res = $m->notes(



More information about the Bps-public-commit mailing list