Bug 295213: whine mail still goes out even though whinedays = "0" - Patch by Marc Schumann <wurblzap@gmail.com> r=LpSolit a=myk

This commit is contained in:
lpsolit%gmail.com 2005-06-02 21:24:08 +00:00
parent 053fdad9a0
commit 72f59e46ed
2 changed files with 6 additions and 2 deletions

View File

@ -770,8 +770,9 @@ Configure bugmail: %urlbase%userprefs.cgi?tab=email
{
name => 'whinedays',
desc => 'The number of days that we\'ll let a bug sit untouched in a NEW ' .
'state before our cronjob will whine at the owner.',
desc => q{The number of days that we'll let a bug sit untouched in a NEW
state before our cronjob will whine at the owner.<br>
Set to 0 to disable whining.},
type => 't',
default => 7
},

View File

@ -33,6 +33,9 @@ require "globals.pl";
use Bugzilla::BugMail;
# Whining is disabled if whinedays is zero
exit unless Param('whinedays') >= 1;
my $dbh = Bugzilla->dbh;
SendSQL("SELECT bug_id, short_desc, login_name " .
"FROM bugs INNER JOIN profiles ON userid = assigned_to " .