[rt-users] Patch for CollectionAsTable/Row
Kelly F. Hickel
kfh at mqsoftware.com
Wed Sep 14 16:50:24 EDT 2005
While working on the Statistics stuff, I noticed that although
Elements/CollectionAsTable/ParseFormat will accept formats with STYLE
specified, Elements/CollectionAsTable/Row ignores the specified value,
even though it handles the ALIGN tag. Attached is a unified diff adding
support for STYLE.
Note that Row also ignores CLASS, probably because it's putting out it's
own class. I didn't change that, but it seems simple if it's
desired....
--- share/html/Elements/CollectionAsTable/Row 2005-04-17
20:45:00.000000000 -0500
+++ local/html/Elements/CollectionAsTable/Row 2005-09-14
15:43:40.000000000 -0500
@@ -71,6 +71,7 @@
$item++;
$m->out('<td class="collection-as-table" ');
$m->out( 'align="' . $column->{align} . '"' ) if ( $column->{align}
);
+ $m->out( 'style="' . $column->{style} . '"' ) if ( $column->{style}
);
$m->out('>');
foreach my $subcol ( @{ $column->{output} } ) {
if ( $subcol =~ /^__(.*?)__$/o ) {
--
Kelly F. Hickel
Senior Software Architect
MQSoftware, Inc
952.345.8677
kfh at mqsoftware.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20050914/4609df2b/attachment.htm>
More information about the rt-users
mailing list