Commit f1b5390e authored by Frédéric Buclin's avatar Frédéric Buclin

Bug 899586: Consecutive whitespaces in field values are ignored in <select> elements

r=sgreen a=glob
parent b816db49
......@@ -105,7 +105,7 @@
[% 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 ~%]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment