Commit c39e36be authored by terry%mozilla.org's avatar terry%mozilla.org

Make 'doomed' reports honor the per-product defaultmilestone setting, rather…

Make 'doomed' reports honor the per-product defaultmilestone setting, rather than looking at the obsolete system-wide 'curmilestone' param.
parent 555f7fef
......@@ -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";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment