diff options
author | endico%mozilla.org <> | 1999-08-06 06:21:01 +0200 |
---|---|---|
committer | endico%mozilla.org <> | 1999-08-06 06:21:01 +0200 |
commit | 63849bd22996f301b8d63c3c349ffee0f2bb0186 (patch) | |
tree | c767826219dfe22c4b6046a40818928bc936f17f /reports.cgi | |
parent | a50e5a0bb04f44efda1fd3c0b5810708521c3323 (diff) | |
download | bugzilla-63849bd22996f301b8d63c3c349ffee0f2bb0186.tar.gz bugzilla-63849bd22996f301b8d63c3c349ffee0f2bb0186.tar.xz |
Oops. was counting closed bugs too.
Diffstat (limited to 'reports.cgi')
-rwxr-xr-x | reports.cgi | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/reports.cgi b/reports.cgi index 992f60fa3..b8d71cafa 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 .= <<FIN; +and + ( + bugs.bug_status = 'NEW' or + bugs.bug_status = 'ASSIGNED' or + bugs.bug_status = 'REOPENED' + ) +FIN + SendSQL ($query); my $bugcount = FetchSQLData(); $bugsperperson{$person} = $bugcount; $bugtotal += $bugcount; |