[Rt-commit] r6006 - in rt/branches/3.7-EXPERIMENTAL: .

ruz at bestpractical.com ruz at bestpractical.com
Wed Sep 20 22:37:00 EDT 2006


Author: ruz
Date: Wed Sep 20 22:36:59 2006
New Revision: 6006

Modified:
   rt/branches/3.7-EXPERIMENTAL/   (props changed)
   rt/branches/3.7-EXPERIMENTAL/lib/RT/Interface/Web.pm

Log:
 r3780 at cubic-pc:  cubic | 2006-09-21 04:51:33 +0400
 * drop uninit warnings


Modified: rt/branches/3.7-EXPERIMENTAL/lib/RT/Interface/Web.pm
==============================================================================
--- rt/branches/3.7-EXPERIMENTAL/lib/RT/Interface/Web.pm	(original)
+++ rt/branches/3.7-EXPERIMENTAL/lib/RT/Interface/Web.pm	Wed Sep 20 22:36:59 2006
@@ -1165,7 +1165,7 @@
                     } elsif ($CustomFieldObj->Type =~ /text/i) { # Both Text and Wikitext
                         @values = ($ARGSRef->{$arg});
                     } else {
-                        @values = split /\n/, $ARGSRef->{$arg};
+                        @values = split /\n/, $ARGSRef->{$arg} || '';
                     }
                     
                     if ( ($CustomFieldObj->Type eq 'Freeform' 
@@ -1222,7 +1222,7 @@
 
                         }
                         while ( my $cf_value = $cf_values->Next ) {
-                            unless ( $values_hash{ $cf_value->Content } == 1 ) {
+                            unless ( $values_hash{ $cf_value->Content } ) {
                                 my ( $val, $msg ) = $Object->DeleteCustomFieldValue(
                                     Field => $cf,
                                     Value => $cf_value->Content


More information about the Rt-commit mailing list