summaryrefslogtreecommitdiffstats
path: root/template/en/default/reports
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
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')
-rw-r--r--template/en/default/reports/duplicates-table.html.tmpl4
-rw-r--r--template/en/default/reports/duplicates.html.tmpl9
2 files changed, 7 insertions, 6 deletions
diff --git a/template/en/default/reports/duplicates-table.html.tmpl b/template/en/default/reports/duplicates-table.html.tmpl
index 34e070f10..d2205f2c0 100644
--- a/template/en/default/reports/duplicates-table.html.tmpl
+++ b/template/en/default/reports/duplicates-table.html.tmpl
@@ -39,7 +39,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. Restrict to these products only.
#%]
[% PROCESS global/variables.none.tmpl %]
@@ -78,7 +78,7 @@
[% "&amp;maxrows=$maxrows" IF maxrows %]
[% "&amp;changedsince=$changedsince" IF changedsince %]
[% "&amp;openonly=1" IF openonly %]
- [% IF product %]&amp;product=[% product FILTER html %][% END %]
+ [% FOREACH p = query_products %]&amp;product=[% p FILTER html %][% END %]
[% IF format %]&amp;format=[% format FILTER html %][% END %]
[% "&amp;bug_id=$bug_ids_string&amp;sortvisible=1"
IF sortvisible %]">
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>