summaryrefslogtreecommitdiffstats
path: root/template/en/default/reports/duplicates.html.tmpl
diff options
context:
space:
mode:
authorjocuri%softhome.net <>2003-10-26 23:01:04 +0100
committerjocuri%softhome.net <>2003-10-26 23:01:04 +0100
commitc1e422c6eaba7e76486b4fc156cd278202ec296b (patch)
tree0cd8a2b3fcb6186d68614c2a2966c20cd9d0f941 /template/en/default/reports/duplicates.html.tmpl
parentd7f41e155bb027e6c36c62f1c29290a8300c2e73 (diff)
downloadbugzilla-c1e422c6eaba7e76486b4fc156cd278202ec296b.tar.gz
bugzilla-c1e422c6eaba7e76486b4fc156cd278202ec296b.tar.xz
Bug 221900: duplicates.cgi query fails if more than one product selected; patch by chaduv <caduvall@glue.umd.edu>; r=gerv; a=justdave.
Diffstat (limited to 'template/en/default/reports/duplicates.html.tmpl')
-rw-r--r--template/en/default/reports/duplicates.html.tmpl9
1 files changed, 5 insertions, 4 deletions
diff --git a/template/en/default/reports/duplicates.html.tmpl b/template/en/default/reports/duplicates.html.tmpl
index bff971f89..fb3184cf6 100644
--- a/template/en/default/reports/duplicates.html.tmpl
+++ b/template/en/default/reports/duplicates.html.tmpl
@@ -27,7 +27,7 @@
# maxrows: integer. Max number of rows to display.
# changedsince: integer. The number of days ago for the changedsince column.
# openonly: boolean. True if we are only showing open bugs.
- # product: string. Restrict to this product only.
+ # query_products: list of strings. The set of products we check for dups.
#
# Additionally, you need to fulfill the interface to
# duplicates-table.html.tmpl.
@@ -35,8 +35,8 @@
[% PROCESS global/variables.none.tmpl %]
-[% IF product %]
- [% title = "Most Frequently Reported $terms.Bugs for $product" %]
+[% IF query_products.size %]
+ [% title = "Most Frequently Reported $terms.Bugs for ${query_products.join(', ')}" %]
[% ELSE %]
[% title = "Most Frequently Reported $terms.Bugs" %]
[% END%]
@@ -85,7 +85,8 @@
<select name="product" size="5" multiple="multiple">
[% FOREACH p = products %]
<option name="[% p FILTER html %]"
- [% " selected" IF product == p %]>[% p FILTER html %]</option>
+ [% " selected" IF lsearch(query_products, p) != -1 %]
+ >[% p FILTER html %]</option>
[% END %]
</select>
</td>