Commit 79885c83 authored by lpsolit%gmail.com's avatar lpsolit%gmail.com

Bug 295213: whine mail still goes out even though whinedays = "0" - Patch by…

Bug 295213: whine mail still goes out even though whinedays = "0" - Patch by Marc Schumann <wurblzap@gmail.com> r=LpSolit a=myk
parent 334aebea
...@@ -770,8 +770,9 @@ Configure bugmail: %urlbase%userprefs.cgi?tab=email ...@@ -770,8 +770,9 @@ Configure bugmail: %urlbase%userprefs.cgi?tab=email
{ {
name => 'whinedays', name => 'whinedays',
desc => 'The number of days that we\'ll let a bug sit untouched in a NEW ' . 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.', state before our cronjob will whine at the owner.<br>
Set to 0 to disable whining.},
type => 't', type => 't',
default => 7 default => 7
}, },
......
...@@ -33,6 +33,9 @@ require "globals.pl"; ...@@ -33,6 +33,9 @@ require "globals.pl";
use Bugzilla::BugMail; use Bugzilla::BugMail;
# Whining is disabled if whinedays is zero
exit unless Param('whinedays') >= 1;
my $dbh = Bugzilla->dbh; my $dbh = Bugzilla->dbh;
SendSQL("SELECT bug_id, short_desc, login_name " . SendSQL("SELECT bug_id, short_desc, login_name " .
"FROM bugs INNER JOIN profiles ON userid = assigned_to " . "FROM bugs INNER JOIN profiles ON userid = assigned_to " .
......
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