diff options
author | ghendricks%novell.com <> | 2009-09-29 22:02:14 +0200 |
---|---|---|
committer | ghendricks%novell.com <> | 2009-09-29 22:02:14 +0200 |
commit | 2f2a240126d4d22d420a84d10450e8231ffb293a (patch) | |
tree | fc067371f432672793cc339db802f0a6694a3ee3 /template/en/default | |
parent | 5b595f757ec207f03b6e36fe30d5e2ee517c64ca (diff) | |
download | bugzilla-2f2a240126d4d22d420a84d10450e8231ffb293a.tar.gz bugzilla-2f2a240126d4d22d420a84d10450e8231ffb293a.tar.xz |
Bug 519481 - Advanced search has empty version and milestone
patch by ghendricks r=LpSolit
Diffstat (limited to 'template/en/default')
-rw-r--r-- | template/en/default/search/form.html.tmpl | 31 |
1 files changed, 19 insertions, 12 deletions
diff --git a/template/en/default/search/form.html.tmpl b/template/en/default/search/form.html.tmpl index 5df8bc0a9..b09516de1 100644 --- a/template/en/default/search/form.html.tmpl +++ b/template/en/default/search/form.html.tmpl @@ -612,18 +612,25 @@ function doOnSelectProduct(selectmode) { <select name="[% sel.name %]" id="[% sel.name %]" multiple="multiple" size="[% sel.size %]"> [% FOREACH value = ${sel.name} %] - [%# This only applies for Resolution really %] - <option value="[% value.name OR '---' FILTER html %]" - [% " selected" IF lsearch(default.${sel.name}, value.name) != -1 %]> - [% IF sel.name == "bug_status" %] - [% get_status(value.name) FILTER html %] - [% ELSIF sel.name == "resolution" %] - [%# Again, resolution has that odd empty value. Replace it with '---' %] - [% get_resolution(value.name) OR '---' FILTER html %] - [% ELSE %] - [% value.name FILTER html %] - [% END %] - </option> + [% 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 sel.name == "bug_status" %] + [% get_status(value.name) FILTER html %] + [% ELSIF sel.name == "resolution" %] + [%# Again, resolution has that odd empty value. Replace it with '---' %] + [% get_resolution(value.name) OR '---' FILTER html %] + [% ELSE %] + [% value.name FILTER html %] + [% END %] + </option> + [% ELSE %] + <option value="[% value OR '---' FILTER html %]" + [% " selected" IF lsearch(default.${sel.name}, value) != -1 %]> + [% value FILTER html %] + </option> + [% END %] [% END %] </select> </td> |