aboutsummaryrefslogtreecommitdiffstats
path: root/reports.cgi
diff options
context:
space:
mode:
authorterry%mozilla.org <>2000-11-10 02:57:51 +0000
committerterry%mozilla.org <>2000-11-10 02:57:51 +0000
commitc39e36be239e6d16868f73a533808101d5e6ab2f (patch)
treea7356eda95f0d2fbfb09d1685a29ab29afca43cc /reports.cgi
parent555f7fefff457bd05ffd300272c0809024935b51 (diff)
downloadbugs-c39e36be239e6d16868f73a533808101d5e6ab2f.tar
bugs-c39e36be239e6d16868f73a533808101d5e6ab2f.tar.gz
bugs-c39e36be239e6d16868f73a533808101d5e6ab2f.tar.bz2
bugs-c39e36be239e6d16868f73a533808101d5e6ab2f.tar.xz
bugs-c39e36be239e6d16868f73a533808101d5e6ab2f.zip
Make 'doomed' reports honor the per-product defaultmilestone setting, rather than looking at the obsolete system-wide 'curmilestone' param.
Diffstat (limited to 'reports.cgi')
-rwxr-xr-xreports.cgi6
1 files changed, 6 insertions, 0 deletions
diff --git a/reports.cgi b/reports.cgi
index 68a00e6f0..d6a38c0ea 100755
--- a/reports.cgi
+++ b/reports.cgi
@@ -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";