summaryrefslogtreecommitdiffstats
path: root/template/en/default/search
diff options
context:
space:
mode:
authorghendricks%novell.com <>2010-01-12 18:26:28 +0100
committerghendricks%novell.com <>2010-01-12 18:26:28 +0100
commit61c5777bf9539b94c7cc3188a7970f1bd819adfa (patch)
tree6d680645f29fdcc0a8aed6374a2073616e44995b /template/en/default/search
parent47193c652200dce8051f3ae75848e1cc45f0427d (diff)
downloadbugzilla-61c5777bf9539b94c7cc3188a7970f1bd819adfa.tar.gz
bugzilla-61c5777bf9539b94c7cc3188a7970f1bd819adfa.tar.xz
Bug 539229 - Editing a search with resolution '---' does not remember that resolution
patch by ghendricks r=LpSolit a=LpSolit
Diffstat (limited to 'template/en/default/search')
-rw-r--r--template/en/default/search/form.html.tmpl9
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 %]