Commit 2f2a2401 authored by ghendricks%novell.com's avatar ghendricks%novell.com

Bug 519481 - Advanced search has empty version and milestone

patch by ghendricks r=LpSolit
parent 5b595f75
...@@ -612,18 +612,25 @@ function doOnSelectProduct(selectmode) { ...@@ -612,18 +612,25 @@ function doOnSelectProduct(selectmode) {
<select name="[% sel.name %]" id="[% sel.name %]" <select name="[% sel.name %]" id="[% sel.name %]"
multiple="multiple" size="[% sel.size %]"> multiple="multiple" size="[% sel.size %]">
[% FOREACH value = ${sel.name} %] [% FOREACH value = ${sel.name} %]
[%# This only applies for Resolution really %] [% IF value.id %]
<option value="[% value.name OR '---' FILTER html %]" [%# This only applies for Resolution really %]
[% " selected" IF lsearch(default.${sel.name}, value.name) != -1 %]> <option value="[% value.name OR '---' FILTER html %]"
[% IF sel.name == "bug_status" %] [% " selected" IF lsearch(default.${sel.name}, value.name) != -1 %]>
[% get_status(value.name) FILTER html %] [% IF sel.name == "bug_status" %]
[% ELSIF sel.name == "resolution" %] [% get_status(value.name) FILTER html %]
[%# Again, resolution has that odd empty value. Replace it with '---' %] [% ELSIF sel.name == "resolution" %]
[% get_resolution(value.name) OR '---' FILTER html %] [%# Again, resolution has that odd empty value. Replace it with '---' %]
[% ELSE %] [% get_resolution(value.name) OR '---' FILTER html %]
[% value.name FILTER html %] [% ELSE %]
[% END %] [% value.name FILTER html %]
</option> [% END %]
</option>
[% ELSE %]
<option value="[% value OR '---' FILTER html %]"
[% " selected" IF lsearch(default.${sel.name}, value) != -1 %]>
[% value FILTER html %]
</option>
[% END %]
[% END %] [% END %]
</select> </select>
</td> </td>
......
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