]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Make 'doomed' reports honor the per-product defaultmilestone setting, rather than...
authorterry%mozilla.org <>
Fri, 10 Nov 2000 02:57:51 +0000 (02:57 +0000)
committerterry%mozilla.org <>
Fri, 10 Nov 2000 02:57:51 +0000 (02:57 +0000)
reports.cgi

index 68a00e6f066b8d5389b1a4a249943e7259cf2fdf..d6a38c0eac505533de2a032e0a7098ef9504e5ba 100755 (executable)
@@ -666,6 +666,9 @@ sub most_doomed_for_milestone {
 
     print "<center>\n<h1>";
     if( $FORM{'product'} ne "-All-" ) {
+        SendSQL("SELECT defaultmilestone FROM products WHERE product = " .
+                SqlQuote($FORM{'product'}));
+        $ms = FetchOneColumn();
         print "Most Doomed for $ms ($FORM{'product'})";
     } else {
         print "Most Doomed for $ms";
@@ -785,6 +788,9 @@ sub most_recently_doomed {
                                                      
     print "<center>\n<h1>";
     if( $FORM{'product'} ne "-All-" ) {
+        SendSQL("SELECT defaultmilestone FROM products WHERE product = " .
+                SqlQuote($FORM{'product'}));
+        $ms = FetchOneColumn();
         print "Most Recently Doomed ($FORM{'product'})";
     } else {
         print "Most Recently Doomed";