[Rt-commit] r10598 - in rt/branches/3.999-DANGEROUS: t/api t/ticket t/web

ruz at bestpractical.com ruz at bestpractical.com
Wed Jan 30 17:06:43 EST 2008


Author: ruz
Date: Wed Jan 30 17:06:43 2008
New Revision: 10598

Modified:
   rt/branches/3.999-DANGEROUS/html/Admin/CustomFields/Modify.html
   rt/branches/3.999-DANGEROUS/t/api/cf_transaction.t
   rt/branches/3.999-DANGEROUS/t/ticket/batch-upload-csv.t
   rt/branches/3.999-DANGEROUS/t/web/cf_access.t
   rt/branches/3.999-DANGEROUS/t/web/cf_select_one.t

Log:
* LookupType

Modified: rt/branches/3.999-DANGEROUS/html/Admin/CustomFields/Modify.html
==============================================================================
--- rt/branches/3.999-DANGEROUS/html/Admin/CustomFields/Modify.html	(original)
+++ rt/branches/3.999-DANGEROUS/html/Admin/CustomFields/Modify.html	Wed Jan 30 17:06:43 2008
@@ -146,7 +146,7 @@
         my ( $val, $msg ) = $CustomFieldObj->create(
             name          => $name,
             TypeComposite => $TypeComposite,
-            LookupType    => $LookupType,
+            lookup_type    => $LookupType,
             description   => $description,
             Pattern       => $Pattern,
         );

Modified: rt/branches/3.999-DANGEROUS/t/api/cf_transaction.t
==============================================================================
--- rt/branches/3.999-DANGEROUS/t/api/cf_transaction.t	(original)
+++ rt/branches/3.999-DANGEROUS/t/api/cf_transaction.t	Wed Jan 30 17:06:43 2008
@@ -16,7 +16,7 @@
 ok($id,$msg);
 
 my $cf = RT::Model::CustomField->new(current_user => RT->system_user);
-($id,$msg) = $cf->create(name => 'Txnfreeform-'.$$, type => 'Freeform', MaxValues => '0', LookupType => RT::Model::Transaction->custom_field_lookup_type );
+($id,$msg) = $cf->create(name => 'Txnfreeform-'.$$, type => 'Freeform', MaxValues => '0', lookup_type => RT::Model::Transaction->custom_field_lookup_type );
 
 ok($id,$msg);
 

Modified: rt/branches/3.999-DANGEROUS/t/ticket/batch-upload-csv.t
==============================================================================
--- rt/branches/3.999-DANGEROUS/t/ticket/batch-upload-csv.t	(original)
+++ rt/branches/3.999-DANGEROUS/t/ticket/batch-upload-csv.t	Wed Jan 30 17:06:43 2008
@@ -13,7 +13,7 @@
 $queue_obj->create(name => $QUEUE);
 
 my $cf = RT::Model::CustomField->new(current_user => RT->system_user);
-my ($val,$msg)  = $cf->create(name => 'Work Package-'.$$, type => 'Freeform', LookupType => RT::Model::Ticket->custom_field_lookup_type, MaxValues => 1);
+my ($val,$msg)  = $cf->create(name => 'Work Package-'.$$, type => 'Freeform', lookup_type => RT::Model::Ticket->custom_field_lookup_type, MaxValues => 1);
 ok($cf->id);
 ok($val,$msg);
 ($val, $msg) = $cf->add_to_object($queue_obj);

Modified: rt/branches/3.999-DANGEROUS/t/web/cf_access.t
==============================================================================
--- rt/branches/3.999-DANGEROUS/t/web/cf_access.t	(original)
+++ rt/branches/3.999-DANGEROUS/t/web/cf_access.t	Wed Jan 30 17:06:43 2008
@@ -21,7 +21,7 @@
         form_name => "ModifyCustomField",
         fields => {
             TypeComposite => 'Image-0',
-            LookupType => 'RT::Model::Queue-RT::Model::Ticket',
+            lookup_type => 'RT::Model::Queue-RT::Model::Ticket',
             name => 'img',
             description => 'img',
         },

Modified: rt/branches/3.999-DANGEROUS/t/web/cf_select_one.t
==============================================================================
--- rt/branches/3.999-DANGEROUS/t/web/cf_select_one.t	(original)
+++ rt/branches/3.999-DANGEROUS/t/web/cf_select_one.t	Wed Jan 30 17:06:43 2008
@@ -24,7 +24,7 @@
         fields => {
             name          => $cf_name,
             TypeComposite => 'Select-1',
-            LookupType    => 'RT::Model::Queue-RT::Model::Ticket',
+            lookup_type    => 'RT::Model::Queue-RT::Model::Ticket',
         },
     );
     $m->content_like( qr/Object Created/, 'Created CF sucessfully' );


More information about the Rt-commit mailing list