[Rt-commit] r12807 - in rt/branches/3.8-TESTING: lib/RT/Interface

alexmv at bestpractical.com alexmv at bestpractical.com
Mon Jun 2 14:53:51 EDT 2008


Author: alexmv
Date: Mon Jun  2 14:53:51 2008
New Revision: 12807

Modified:
   rt/branches/3.8-TESTING/   (props changed)
   rt/branches/3.8-TESTING/lib/RT/Interface/REST.pm

Log:
 r32376 at kohr-ah:  chmrr | 2008-06-02 14:53:00 -0400
  * We _like_ being able to return fields that have "0" as their value


Modified: rt/branches/3.8-TESTING/lib/RT/Interface/REST.pm
==============================================================================
--- rt/branches/3.8-TESTING/lib/RT/Interface/REST.pm	(original)
+++ rt/branches/3.8-TESTING/lib/RT/Interface/REST.pm	Mon Jun  2 14:53:51 2008
@@ -202,7 +202,7 @@
                 $sp = " "x4 if length($sp) > 16;
 
                 foreach $v (@values) {
-                    $v = '' unless $v;
+                    $v = '' unless defined $v;
                     if ( $v =~ /\n/) {
                         $v =~ s/^/$sp/gm;
                         $v =~ s/^$sp//;


More information about the Rt-commit mailing list