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

sartak at bestpractical.com sartak at bestpractical.com
Tue Apr 7 00:43:58 EDT 2009


Author: sartak
Date: Tue Apr  7 00:43:58 2009
New Revision: 19072

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

Log:
 r81784 at onn:  sartak | 2009-04-07 00:43:55 -0400
 Core field might be transaction-based like Content


Modified: RT-FormTools/html/FormTools/Field
==============================================================================
--- RT-FormTools/html/FormTools/Field	(original)
+++ RT-FormTools/html/FormTools/Field	Tue Apr  7 00:43:58 2009
@@ -25,7 +25,7 @@
     my $res = $m->notes(
         core_fields_on_page => [ @{$m->notes('core_fields_on_page')||[]}, $name ] );
     $field_label ||= $name;
-    $default ||= $ticket->$name if $ticket;
+    $default ||= $ticket->$name if $ticket && $ticket->can($name);
 } else {
 
     $cf = RT::CustomField->new( $session{'CurrentUser'} );



More information about the Bps-public-commit mailing list