]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
don't offer most doomed report if this bugzilla installation doesn't use milestones...
authorendico%mozilla.org <>
Fri, 6 Aug 1999 03:48:51 +0000 (03:48 +0000)
committerendico%mozilla.org <>
Fri, 6 Aug 1999 03:48:51 +0000 (03:48 +0000)
reports.cgi

index a8de9f8044bb482b69324b60b26200b702a85af8..992f60fa3430664faf2c62778bb59a755e6e18a8 100755 (executable)
@@ -133,7 +133,11 @@ $product_popup
 <td align=center>
 <select name="output">
 <option value="most_doomed">Bug Counts
-<option value="most_doomed_for_milestone">Most Doomed
+FIN
+        if (Param('usetargetmilestone')) {
+            print "<option value=\"most_doomed_for_milestone\">Most Doomed";
+            }
+       print <<FIN;
 $charts
 </select>
 <tr>
@@ -572,7 +576,7 @@ 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\";");
+                SendSQL ("select count(bug_id) from bugs,profiles where target_milestone=\"$ms\" and userid=assigned_to and userid=\"$person\"");
                my $bugcount = FetchSQLData();
                 $bugsperperson{$person} = $bugcount;
                 $bugtotal += $bugcount;
@@ -594,7 +598,7 @@ FIN
                 {
                 $person = pop @people;
                 print "<TR><TD>\n";
-                SendSQL("select login_name from profiles where userid=$person;");
+                SendSQL("select login_name from profiles where userid=$person");
                 my $login_name= FetchSQLData();
                 print("<A HREF=\"buglist.cgi?bug_status=NEW&bug_status=ASSIGNED&bug_status=REOPENED&target_milestone=M9&assigned_to=$login_name\">\n");
                 print("$bugsperperson{$person}  bugs and features");
@@ -607,7 +611,7 @@ FIN
 
                 $person = pop @people;
                 if ($person) {
-                    SendSQL("select login_name from profiles where userid=$person;");
+                    SendSQL("select login_name from profiles where userid=$person");
                     my $login_name= FetchSQLData();
                     print("<A HREF=\"buglist.cgi?bug_status=NEW&bug_status=ASSIGNED&bug_status=REOPENED&target_milestone=M9&assigned_to=$login_name\">\n");
                     print("$bugsperperson{$person}  bugs and features");