]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 899586: Consecutive whitespaces in field values are ignored in <select> elements
authorFrédéric Buclin <LpSolit@gmail.com>
Thu, 8 Aug 2013 19:58:19 +0000 (21:58 +0200)
committerFrédéric Buclin <LpSolit@gmail.com>
Thu, 8 Aug 2013 19:58:19 +0000 (21:58 +0200)
r=sgreen a=glob

template/en/default/search/field.html.tmpl

index ab73808571ee6cc50789ec562b44a08fbeeb5640..45c3650f8592f6aeaa44b47f7a2b1fa7c1ad1544 100644 (file)
         [% FOREACH current_value = legal_values %]
           [% SET v = current_value.name OR '---' -%]
           [% SET display = display_value(field.name, current_value.name) %]
-          <option [% IF v != display %]value="[% v FILTER html %]"[% END ~%]
+          <option value="[% v FILTER html %]"
             id="v[% current_value.id FILTER html %]_[% field.name FILTER html %]"
             [% ' selected="selected"' IF value.contains( v ) %]>
             [%~ display FILTER html ~%]