[freeside-commits] freeside/rt/html/Elements/CollectionAsTable Row, 1.5, 1.6

Ivan,,, ivan at wavetail.420.am
Mon Mar 3 15:12:45 PST 2008


Update of /home/cvs/cvsroot/freeside/rt/html/Elements/CollectionAsTable
In directory wavetail.420.am:/tmp/cvs-serv10951/html/Elements/CollectionAsTable

Modified Files:
	Row 
Log Message:
merge in rt 3.6.6.  *gulp*!

Index: Row
===================================================================
RCS file: /home/cvs/cvsroot/freeside/rt/html/Elements/CollectionAsTable/Row,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- Row	3 Aug 2007 21:49:02 -0000	1.5
+++ Row	3 Mar 2008 23:12:43 -0000	1.6
@@ -55,6 +55,7 @@
 </%ARGS>
 
 <%PERL>
+use HTML::Entities;
 $m->out('<tr class="' . ( $Warning ? 'warnline' : $i % 2 ? 'oddline' : 'evenline' ) . '" >' );
 my $item;
 foreach my $column (@Format) {
@@ -71,7 +72,9 @@
         next;
     }
     $item++;
-    $m->out('<td class="collection-as-table" ');
+    my $class = $column->{class}
+	? encode_entities($column->{class}, q{'"&<>}) : 'collection-as-table';
+    $m->out(qq{<td class="$class" });
     $m->out( 'align="' . $column->{align} . '"' ) if ( $column->{align} );
     $m->out( 'style="' . $column->{style} . '"' ) if ( $column->{style} );
     $m->out('>');



More information about the freeside-commits mailing list