Commit 63849bd2 authored by endico%mozilla.org's avatar endico%mozilla.org

Oops. was counting closed bugs too.

parent a50e5a0b
...@@ -576,7 +576,19 @@ FIN ...@@ -576,7 +576,19 @@ FIN
my $bugtotal = 0; my $bugtotal = 0;
foreach $person (@people) 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(); my $bugcount = FetchSQLData();
$bugsperperson{$person} = $bugcount; $bugsperperson{$person} = $bugcount;
$bugtotal += $bugcount; $bugtotal += $bugcount;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment