[Rt-commit] rt branch, 4.2/user-info-formatting, updated. rt-4.1.6-300-gc49a64f
Thomas Sibley
trs at bestpractical.com
Mon Mar 4 21:02:30 EST 2013
The branch, 4.2/user-info-formatting has been updated
via c49a64ff1a2ccfb814923c621940e64ad571e30a (commit)
from 3e05ce3577a60c06652aaeb2a54e606bf15bb80d (commit)
Summary of changes:
share/html/User/Elements/UserInfo | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
- Log -----------------------------------------------------------------
commit c49a64ff1a2ccfb814923c621940e64ad571e30a
Author: Thomas Sibley <trs at bestpractical.com>
Date: Mon Mar 4 18:01:09 2013 -0800
Escape column names when using them as CSS classes
Otherwise names such as CF.{Foo} are used, which is invalid and
unaddressable using CSS selectors.
diff --git a/share/html/User/Elements/UserInfo b/share/html/User/Elements/UserInfo
index 1fc7476..37a53cb 100644
--- a/share/html/User/Elements/UserInfo
+++ b/share/html/User/Elements/UserInfo
@@ -53,7 +53,7 @@
% $title = $fetch_columnmap->($attr,'title',[$attr],'no_escape');
% }
% $title = ScrubHTML($title);
-<div class="<% $ClassPrefix %>-extra-field <% $fetch_columnmap->($attr,'attribute',[$attr],'no_escape') %>" >
+<div class="<% $ClassPrefix %>-extra-field <% CSSClass($fetch_columnmap->($attr,'attribute',[$attr],'no_escape')) %>" >
<span class="label"><% loc($title) %></span>
% my @out;
% foreach my $subcol ( @{ $column->{output} } ) {
-----------------------------------------------------------------------
More information about the Rt-commit
mailing list