[Rt-commit] r10540 - in rt/branches/3.999-DANGEROUS: lib/RT/Model

ruz at bestpractical.com ruz at bestpractical.com
Mon Jan 28 18:27:05 EST 2008


Author: ruz
Date: Mon Jan 28 18:27:03 2008
New Revision: 10540

Modified:
   rt/branches/3.999-DANGEROUS/lib/RT/Model/CustomField.pm
   rt/branches/3.999-DANGEROUS/t/api/cf_combo_casacade.t
   rt/branches/3.999-DANGEROUS/t/api/cf_pattern.t

Log:
* more on lowering

Modified: rt/branches/3.999-DANGEROUS/lib/RT/Model/CustomField.pm
==============================================================================
--- rt/branches/3.999-DANGEROUS/lib/RT/Model/CustomField.pm	(original)
+++ rt/branches/3.999-DANGEROUS/lib/RT/Model/CustomField.pm	Mon Jan 28 18:27:03 2008
@@ -954,7 +954,7 @@
     }
 
     unless ( $self->match_pattern( $args{'Content'} || '' ) ) {
-        return ( 0, _( 'Input must match %1', $self->FriendlyPattern ) );
+        return ( 0, _( 'Input must match %1', $self->friendly_pattern ) );
     }
 
     Jifty->handle->begin_transaction;
@@ -1021,9 +1021,9 @@
 
 # }}}
 
-# {{{ FriendlyPattern
+# {{{ friendly_pattern
 
-=head2 FriendlyPattern
+=head2 friendly_pattern
 
 Prettify the pattern of this custom field, by taking the text in C<(?#text)>
 and localizing it.
@@ -1093,7 +1093,7 @@
 
 # for single-value fields, we need to validate that empty string is a valid value for it
     if ( $self->single_value and not $self->match_pattern('') ) {
-        return ( 0, _( 'Input must match %1', $self->FriendlyPattern ) );
+        return ( 0, _( 'Input must match %1', $self->friendly_pattern ) );
     }
 
     # delete it

Modified: rt/branches/3.999-DANGEROUS/t/api/cf_combo_casacade.t
==============================================================================
--- rt/branches/3.999-DANGEROUS/t/api/cf_combo_casacade.t	(original)
+++ rt/branches/3.999-DANGEROUS/t/api/cf_combo_casacade.t	Mon Jan 28 18:27:03 2008
@@ -17,7 +17,7 @@
 works($q->create(name => "CF-Pattern-".$$));
 
 my $cf = new('RT::Model::CustomField');
-my @cf_args = (name => $q->name, Type => 'Combobox', Queue => $q->id);
+my @cf_args = (name => $q->name, type => 'Combobox', Queue => $q->id);
 
 works($cf->create(@cf_args));
 

Modified: rt/branches/3.999-DANGEROUS/t/api/cf_pattern.t
==============================================================================
--- rt/branches/3.999-DANGEROUS/t/api/cf_pattern.t	(original)
+++ rt/branches/3.999-DANGEROUS/t/api/cf_pattern.t	Mon Jan 28 18:27:03 2008
@@ -19,7 +19,7 @@
 works($q->create(name => "CF-Pattern-".$$));
 
 my $cf = new('RT::Model::CustomField');
-my @cf_args = (name => $q->name, Type => 'Freeform', Queue => $q->id, MaxValues => 1);
+my @cf_args = (name => $q->name, type => 'Freeform', Queue => $q->id, MaxValues => 1);
 
 fails($cf->create(@cf_args, Pattern => ')))bad!regex((('));
 works($cf->create(@cf_args, Pattern => 'good regex'));


More information about the Rt-commit mailing list