[Rt-commit] [svn] r1328 - rtfm/trunk/html/RTFM/Article/Elements

alexmv at pallas.eruditorum.org alexmv at pallas.eruditorum.org
Wed Aug 11 23:18:06 EDT 2004


Author: alexmv
Date: Wed Aug 11 23:18:05 2004
New Revision: 1328

Modified:
   rtfm/trunk/html/RTFM/Article/Elements/Preformatted
Log:
RT-Ticket: 5961
RT-Status: resolved
RT-Action: correspond

 * CustomFields may not have an ArticleCFValue associated with them
   for every article; this assumed that TextSingle fields always did.



Modified: rtfm/trunk/html/RTFM/Article/Elements/Preformatted
==============================================================================
--- rtfm/trunk/html/RTFM/Article/Elements/Preformatted	(original)
+++ rtfm/trunk/html/RTFM/Article/Elements/Preformatted	Wed Aug 11 23:18:05 2004
@@ -27,7 +27,7 @@
 % my $values = $Article->CustomFieldValues($cf->Id);
 % if ($cf->Type eq 'TextSingle') {
 % my $value = $values->First; 
-% my $content = $value->Content;
+% my $content = $value ? $value->Content : "";
 % if ($content =~ /<(.{1,5})>/) {
 %    $content = de_htmlify($content);
 % }


More information about the Rt-commit mailing list