From c1e422c6eaba7e76486b4fc156cd278202ec296b Mon Sep 17 00:00:00 2001 From: "jocuri%softhome.net" <> Date: Sun, 26 Oct 2003 22:01:04 +0000 Subject: Bug 221900: duplicates.cgi query fails if more than one product selected; patch by chaduv ; r=gerv; a=justdave. --- template/en/default/reports/duplicates-table.html.tmpl | 4 ++-- template/en/default/reports/duplicates.html.tmpl | 9 +++++---- 2 files changed, 7 insertions(+), 6 deletions(-) (limited to 'template/en/default/reports') 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 @@ [% "&maxrows=$maxrows" IF maxrows %] [% "&changedsince=$changedsince" IF changedsince %] [% "&openonly=1" IF openonly %] - [% IF product %]&product=[% product FILTER html %][% END %] + [% FOREACH p = query_products %]&product=[% p FILTER html %][% END %] [% IF format %]&format=[% format FILTER html %][% END %] [% "&bug_id=$bug_ids_string&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 @@ -- cgit v1.2.3-24-g4f1b