From c39e36be239e6d16868f73a533808101d5e6ab2f Mon Sep 17 00:00:00 2001 From: "terry%mozilla.org" <> Date: Fri, 10 Nov 2000 02:57:51 +0000 Subject: [PATCH] Make 'doomed' reports honor the per-product defaultmilestone setting, rather than looking at the obsolete system-wide 'curmilestone' param. --- reports.cgi | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/reports.cgi b/reports.cgi index 68a00e6f06..d6a38c0eac 100755 --- a/reports.cgi +++ b/reports.cgi @@ -666,6 +666,9 @@ sub most_doomed_for_milestone { print "
\n

"; 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 "
\n

"; 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"; -- 2.47.2