[Rt-commit] r12040 - rt/branches/3.7-RTIR-RELENG/lib/RT

ruz at bestpractical.com ruz at bestpractical.com
Sun May 4 07:52:03 EDT 2008


Author: ruz
Date: Sun May  4 07:52:01 2008
New Revision: 12040

Modified:
   rt/branches/3.7-RTIR-RELENG/lib/RT/CustomField_Overlay.pm

Log:
* check should match wikitext as well

Modified: rt/branches/3.7-RTIR-RELENG/lib/RT/CustomField_Overlay.pm
==============================================================================
--- rt/branches/3.7-RTIR-RELENG/lib/RT/CustomField_Overlay.pm	(original)
+++ rt/branches/3.7-RTIR-RELENG/lib/RT/CustomField_Overlay.pm	Sun May  4 07:52:01 2008
@@ -203,7 +203,7 @@
     my ($ok, $msg) = $self->_IsValidRegex( $args{'Pattern'} );
     return (0, $self->loc("Invalid pattern: [_1]", $msg)) unless $ok;
 
-    if ( $args{'MaxValues'} != 1 && $args{'Type'} =~ /^(text|combobox)$/i ) {
+    if ( $args{'MaxValues'} != 1 && $args{'Type'} =~ /(text|combobox)$/i ) {
         $RT::Logger->warning("Support for 'multiple' Texts or Comboboxes is not implemented");
         $args{'MaxValues'} = 1;
     }


More information about the Rt-commit mailing list