[Rt-commit] r8300 - rt/branches/3.7-EXPERIMENTAL-TUNIS/lib/RT

ruz at bestpractical.com ruz at bestpractical.com
Thu Jul 26 17:13:04 EDT 2007


Author: ruz
Date: Thu Jul 26 17:13:03 2007
New Revision: 8300

Modified:
   rt/branches/3.7-EXPERIMENTAL-TUNIS/lib/RT/ObjectCustomFieldValue_Overlay.pm

Log:
* fix ObjectCustomFieldValue::Content, 0 is ok value

Modified: rt/branches/3.7-EXPERIMENTAL-TUNIS/lib/RT/ObjectCustomFieldValue_Overlay.pm
==============================================================================
--- rt/branches/3.7-EXPERIMENTAL-TUNIS/lib/RT/ObjectCustomFieldValue_Overlay.pm	(original)
+++ rt/branches/3.7-EXPERIMENTAL-TUNIS/lib/RT/ObjectCustomFieldValue_Overlay.pm	Thu Jul 26 17:13:03 2007
@@ -158,7 +158,7 @@
 sub Content {
     my $self = shift;
     my $content = $self->SUPER::Content;
-    if ( !$content && $self->ContentType eq 'text/plain' ) {
+    if ( !(defined $content && length $content) && $self->ContentType eq 'text/plain' ) {
         return $self->LargeContent;
     } else {
         return $content;


More information about the Rt-commit mailing list