[Rt-commit] r5820 - rt/branches/3.4-RELEASE/html/Elements/CollectionAsTable

ruz at bestpractical.com ruz at bestpractical.com
Tue Aug 29 13:03:37 EDT 2006


Author: ruz
Date: Tue Aug 29 13:03:36 2006
New Revision: 5820

Modified:
   rt/branches/3.4-RELEASE/html/Elements/CollectionAsTable/ParseFormat

Log:
* default title to empty string as we compare it with 'NEWLINE' string
  in several places, drops uninit warnings

Modified: rt/branches/3.4-RELEASE/html/Elements/CollectionAsTable/ParseFormat
==============================================================================
--- rt/branches/3.4-RELEASE/html/Elements/CollectionAsTable/ParseFormat	(original)
+++ rt/branches/3.4-RELEASE/html/Elements/CollectionAsTable/ParseFormat	Tue Aug 29 13:03:36 2006
@@ -59,7 +59,9 @@
         substr($col,-1,1) = "";
     }
 
-    my $colref;
+    my $colref = {
+        title => '',
+    };
 
     if ( $col =~ s!/STYLE:([^/]+)!!io ) {
         $colref->{'style'} = $1;
@@ -88,7 +90,7 @@
         $colref->{'attribute'} = $col;
     }
     
-    if ( !$colref->{'title'} && grep { /^__(.*?)__$/io }
+    if ( !$colref->{'title'} && grep { /^__(.+?)__$/io }
         @{ $colref->{'output'} } )
     {   
         $colref->{'title'}     = $1;


More information about the Rt-commit mailing list