summaryrefslogtreecommitdiff
path: root/rt/share/html/Elements/CollectionAsTable/Row
diff options
context:
space:
mode:
authorIvan Kohler <ivan@freeside.biz>2016-09-24 10:28:06 -0700
committerIvan Kohler <ivan@freeside.biz>2016-09-24 10:28:06 -0700
commit7322f2afedcc2f427e997d1535a503613a83f088 (patch)
tree6c0d4e68906bfdaaff2a2067620e222611b979ea /rt/share/html/Elements/CollectionAsTable/Row
parentae14e320388fa5e7f400bff1c251ef885b7952e6 (diff)
rt 4.2.13 ticket#13852
Diffstat (limited to 'rt/share/html/Elements/CollectionAsTable/Row')
-rw-r--r--rt/share/html/Elements/CollectionAsTable/Row17
1 files changed, 15 insertions, 2 deletions
diff --git a/rt/share/html/Elements/CollectionAsTable/Row b/rt/share/html/Elements/CollectionAsTable/Row
index 4b2cfae43..7a37657b6 100644
--- a/rt/share/html/Elements/CollectionAsTable/Row
+++ b/rt/share/html/Elements/CollectionAsTable/Row
@@ -2,7 +2,7 @@
%#
%# COPYRIGHT:
%#
-%# This software is Copyright (c) 1996-2015 Best Practical Solutions, LLC
+%# This software is Copyright (c) 1996-2016 Best Practical Solutions, LLC
%# <sales@bestpractical.com>
%#
%# (Except where explicitly superseded by other copyright notices)
@@ -82,7 +82,6 @@ foreach my $column (@Format) {
}
my $class = $column->{class} ? $m->interp->apply_escapes($column->{class}, 'h') : 'collection-as-table';
- $m->out(qq{<td class="$class" });
my %attrs;
foreach my $attr (qw(style align)) {
@@ -136,6 +135,20 @@ foreach my $column (@Format) {
);
}
+ $m->callback(
+ CallbackName => 'EachField',
+ Record => $record,
+ Format => \@Format,
+ Column => $column,
+ Classes => \$class,
+ Align => \$attrs{align},
+ Style => \$attrs{style},
+ Colspan => \$attrs{colspan},
+ Out => \@out,
+ );
+
+ $m->out(qq{<td class="$class" });
+
$m->out( $_ .'="'. $m->interp->apply_escapes( $attrs{$_} => 'h' ) .'"' )
foreach grep $attrs{$_}, qw(align style colspan);