[Rt-commit] r3967 - in rt/branches/3.4-RELEASE: . lib/RT

jesse at bestpractical.com jesse at bestpractical.com
Fri Oct 14 17:10:25 EDT 2005


Author: jesse
Date: Fri Oct 14 17:10:24 2005
New Revision: 3967

Modified:
   rt/branches/3.4-RELEASE/   (props changed)
   rt/branches/3.4-RELEASE/lib/RT/Ticket_Overlay.pm
Log:
 r17368 at hualien:  jesse | 2005-10-14 17:08:10 -0400
 * When Robert made the change to how CustomFieldValues works, he broke the API. Fixed


Modified: rt/branches/3.4-RELEASE/lib/RT/Ticket_Overlay.pm
==============================================================================
--- rt/branches/3.4-RELEASE/lib/RT/Ticket_Overlay.pm	(original)
+++ rt/branches/3.4-RELEASE/lib/RT/Ticket_Overlay.pm	Fri Oct 14 17:10:24 2005
@@ -3698,7 +3698,7 @@
 sub CustomFieldValues {
     my $self  = shift;
     my $field = shift;
-    unless ( $field =~ /^\d+$/ ) {
+    if ( $field and $field !~ /^\d+$/ ) {
         my $cf = RT::CustomField->new( $self->CurrentUser );
         $cf->LoadByNameAndQueue( Name => $field, Queue => $self->QueueObj->Id );
         unless ( $cf->id ) {


More information about the Rt-commit mailing list