[Rt-commit] r18557 - rt/3.8/trunk/lib/RT

ruz at bestpractical.com ruz at bestpractical.com
Tue Feb 24 06:33:00 EST 2009


Author: ruz
Date: Tue Feb 24 06:32:55 2009
New Revision: 18557

Modified:
   rt/3.8/trunk/lib/RT/Tickets_Overlay.pm

Log:
* treat number specially in _CustomFieldDecipher, the way we treat it other places around

Modified: rt/3.8/trunk/lib/RT/Tickets_Overlay.pm
==============================================================================
--- rt/3.8/trunk/lib/RT/Tickets_Overlay.pm	(original)
+++ rt/3.8/trunk/lib/RT/Tickets_Overlay.pm	Tue Feb 24 06:32:55 2009
@@ -1204,7 +1204,7 @@
             $queue = 0;
         }
     }
-    else {
+    elsif ( $field =~ /\D/ ) {
         $queue = '';
         my $cfs = RT::CustomFields->new( $self->CurrentUser );
         $cfs->Limit( FIELD => 'Name', VALUE => $field );
@@ -1218,6 +1218,10 @@
             $cf = undef if $cfs->Next;
         }
     }
+    else {
+        $cf = RT::CustomField->new( $self->CurrentUser );
+        $cf->Load( $field );
+    }
 
     return ($queue, $field, $cf, $column);
 }


More information about the Rt-commit mailing list