X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;ds=sidebyside;f=httemplate%2Felements%2Ftr-fixed.html;h=6904e3b3011be9a9c4776513aa7da292f990bdaf;hb=dcc0fd92717b25595ba7cd8a712e2eff10454291;hp=ac0dc8db68620d81fea420c26456395a2123ee32;hpb=9509e5bfb7f9331303153cac24d7bfecbe2ea9f1;p=freeside.git
diff --git a/httemplate/elements/tr-fixed.html b/httemplate/elements/tr-fixed.html
index ac0dc8db6..6904e3b30 100644
--- a/httemplate/elements/tr-fixed.html
+++ b/httemplate/elements/tr-fixed.html
@@ -1,6 +1,6 @@
<% include('tr-td-label.html', @_ ) %>
-
><% $opt{'value'} %> |
+ ><% $value %> |
@@ -12,4 +12,17 @@ my %opt = @_;
my $style = $opt{'cell_style'} ? 'STYLE="'. $opt{'cell_style'}. '"' : '';
+my $value = $opt{'formatted_value'} || $opt{'curr_value'} || $opt{'value'};
+$value = $opt{'prefix'} . $value if defined($opt{'prefix'});
+
+unless ( $opt{'noescape'} ) {
+ #compatibility with select-table and friends
+ if ( $opt{'multiple'} ) {
+ $value = [ split(/\s*,\s*/, $value) ] if !ref $value;
+ $value = join('
', map {encode_entities($_)} @$value);
+ } else {
+ $value = encode_entities($value)
+ }
+}
+
%init>