diff options
author | lpsolit%gmail.com <> | 2005-06-03 06:24:08 +0200 |
---|---|---|
committer | lpsolit%gmail.com <> | 2005-06-03 06:24:08 +0200 |
commit | 79885c830264013233f695b8b66f879ab640bc01 (patch) | |
tree | 4ebcb9099a0dde731afadf3114e7d5310729fb6b | |
parent | 334aebead60d1006d4591ac31eeca84d82e60e9b (diff) | |
download | bugzilla-79885c830264013233f695b8b66f879ab640bc01.tar.gz bugzilla-79885c830264013233f695b8b66f879ab640bc01.tar.xz |
Bug 295213: whine mail still goes out even though whinedays = "0" - Patch by Marc Schumann <wurblzap@gmail.com> r=LpSolit a=myk
-rw-r--r-- | defparams.pl | 5 | ||||
-rwxr-xr-x | whineatnews.pl | 3 |
2 files changed, 6 insertions, 2 deletions
diff --git a/defparams.pl b/defparams.pl index 60a2d7726..8534615ab 100644 --- a/defparams.pl +++ b/defparams.pl @@ -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 }, diff --git a/whineatnews.pl b/whineatnews.pl index 286b0c542..16be900ad 100755 --- a/whineatnews.pl +++ b/whineatnews.pl @@ -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 " . |