[Rt-commit] r8669 -
rt/branches/3.6-RELEASE/html/Elements/CollectionAsTable
nicholas at bestpractical.com
nicholas at bestpractical.com
Tue Aug 21 09:39:19 EDT 2007
Author: nicholas
Date: Tue Aug 21 09:39:15 2007
New Revision: 8669
Modified:
rt/branches/3.6-RELEASE/html/Elements/CollectionAsTable/Row
Log:
For a long time html/Elements/CollectionAsTable/ParseFormat has been parsing
/CLASS. Fix html/Elements/CollectionAsTable/Row to put that class on the <td>
Modified: rt/branches/3.6-RELEASE/html/Elements/CollectionAsTable/Row
==============================================================================
--- rt/branches/3.6-RELEASE/html/Elements/CollectionAsTable/Row (original)
+++ rt/branches/3.6-RELEASE/html/Elements/CollectionAsTable/Row Tue Aug 21 09:39:15 2007
@@ -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 Rt-commit
mailing list