print("$bugsperperson{$person} bugs and features");
...
...
@@ -712,20 +775,17 @@ FIN
}
}
print"</TABLE>\n";
}
}
sub most_recently_doomed
{
sub most_recently_doomed{
my$when=localtime(time);
my$ms="M".Param("curmilestone");
my$quip="Summary";
print"<center>\n<h1>";
if($::FORM{'product'}ne"-All-"){
print"Most Recently Doomed ($::FORM{'product'})";
if($FORM{'product'}ne"-All-"){
print"Most Recently Doomed ($FORM{'product'})";
}else{
print"Most Recently Doomed";
}
...
...
@@ -735,33 +795,29 @@ sub most_recently_doomed
# start painting report #
#########################
if($::FORM{'quip'})
{
if(open(COMMENTS,"<data/comments"))
{
if($FORM{'quip'}){
if(open(COMMENTS,"<data/comments")){
my@cdata;
while(<COMMENTS>)
{
while(<COMMENTS>){
push@cdata,$_;
}
closeCOMMENTS;
$quip="<i>".$cdata[int(rand($#cdata+1))]."</i>";}
$quip="<i>".$cdata[int(rand($#cdata+1))]."</i>";
}
}
# Build up $query string
my$query;
$query="select distinct assigned_to from bugs where bugs.bug_status='NEW' and target_milestone='' and bug_severity!='enhancement' and status_whiteboard='' and (product='Browser' or product='MailNews')";
my$query="select distinct assigned_to from bugs where bugs.bug_status='NEW' and target_milestone='' and bug_severity!='enhancement' and status_whiteboard='' and (product='Browser' or product='MailNews')";
my$query="select count(bug_id) from bugs,profiles where bugs.bug_status='NEW' and userid=assigned_to and userid='$person' and target_milestone='' and bug_severity!='enhancement' and status_whiteboard='' and (product='Browser' or product='MailNews')";
if($::FORM{'product'}ne"-All-"){
$query.="and bugs.product='$::FORM{'product'}'";
if($FORM{'product'}ne"-All-"){
$query.="and bugs.product='$FORM{'product'}'";
}
SendSQL($query);
my$bugcount=FetchSQLData();
...
...
@@ -798,8 +853,7 @@ sub most_recently_doomed
}
print"</TD></TR>\n";
while(@people)
{
while(@people){
$person=pop@people;
print"<TR><TD>\n";
SendSQL("select login_name from profiles where userid=$person");