From: David Lawrence Date: Mon, 20 Oct 2014 21:12:05 +0000 (+0000) Subject: Backout Bug 1015226: When using field-label.html.tmpl there is not a way to underline... X-Git-Tag: bugzilla-5.1~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2ebb8b6a298478271c9adcfa22c9c76f9e453e2d;p=thirdparty%2Fbugzilla.git Backout Bug 1015226: When using field-label.html.tmpl there is not a way to underline the access key letter in the field description --- diff --git a/template/en/default/bug/field-label.html.tmpl b/template/en/default/bug/field-label.html.tmpl index 74f2a47793..95ac28acbd 100644 --- a/template/en/default/bug/field-label.html.tmpl +++ b/template/en/default/bug/field-label.html.tmpl @@ -16,21 +16,12 @@ #%] [% DEFAULT tag_name = "th" %] -[% DEFAULT field_name = field_descs.${field.name} FILTER html %] - <[% tag_name FILTER html %] class="field_label [% ' bz_hidden_field' IF hidden %] [%- ' required' IF field.is_mandatory && NOT bug.id %]" id="field_label_[% field.name FILTER html %]" [% IF rowspan %] rowspan="[% rowspan FILTER html %]"[% END %]> [% IF editable %] - [%# Underline the accesskey if defined and found in the field name %] - [% IF accesskey %] - [% matches = field_name.match("(?i)($accesskey)") %] - [% IF matches.0 %] - [% field_name = field_name.replace(matches.0, "${matches.0}") %] - [% END %] - [% END %] ' IF editable %]