]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 519481 - Advanced search has empty version and milestone
authorghendricks%novell.com <>
Tue, 29 Sep 2009 20:02:14 +0000 (20:02 +0000)
committerghendricks%novell.com <>
Tue, 29 Sep 2009 20:02:14 +0000 (20:02 +0000)
 patch by ghendricks r=LpSolit

template/en/default/search/form.html.tmpl

index 5df8bc0a949c133737361e45c877cf2c782435fc..b09516de1f4e79ac6ede2cfff720bfcd704c2c0b 100644 (file)
@@ -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>