diff options
Diffstat (limited to 'template/en/default/search')
-rw-r--r-- | template/en/default/search/form.html.tmpl | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/template/en/default/search/form.html.tmpl b/template/en/default/search/form.html.tmpl index 6ee301dd0..7db07fc79 100644 --- a/template/en/default/search/form.html.tmpl +++ b/template/en/default/search/form.html.tmpl @@ -624,10 +624,11 @@ function doOnSelectProduct(selectmode) { <select name="[% sel.name %]" id="[% sel.name %]" multiple="multiple" size="[% sel.size %]"> [% FOREACH value = ${sel.name} %] - [% IF value.id %] - [%# This only applies for Resolution really %] - <option value="[% value.name OR '---' FILTER html %]" - [% " selected" IF lsearch(default.${sel.name}, value.name) != -1 %]> + [% IF value.id %] + [%# This only applies for Resolution really %] + [% v = value.name OR '---' -%] + <option value="[% v FILTER html %]" + [% " selected" IF lsearch(default.${sel.name}, v) != -1 %]> [% display_value(sel.name, value.name) FILTER html %] </option> [% ELSE %] |