From: endico%mozilla.org <> Date: Fri, 6 Aug 1999 04:21:01 +0000 (+0000) Subject: Oops. was counting closed bugs too. X-Git-Tag: bugzilla-2.6~16 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=63849bd22996f301b8d63c3c349ffee0f2bb0186;p=thirdparty%2Fbugzilla.git Oops. was counting closed bugs too. --- diff --git a/reports.cgi b/reports.cgi index 992f60fa34..b8d71cafac 100755 --- a/reports.cgi +++ b/reports.cgi @@ -576,7 +576,19 @@ FIN my $bugtotal = 0; foreach $person (@people) { - SendSQL ("select count(bug_id) from bugs,profiles where target_milestone=\"$ms\" and userid=assigned_to and userid=\"$person\""); + my $query = "select count(bug_id) from bugs,profiles where target_milestone=\"$ms\" and userid=assigned_to and userid=\"$person\""; + if( $::FORM{'product'} ne "-All-" ) { + $query .= "and bugs.product='$::FORM{'product'}'"; + } + $query .= <