diff options
author | olav%bkor.dhs.org <> | 2006-11-14 07:32:28 +0000 |
---|---|---|
committer | olav%bkor.dhs.org <> | 2006-11-14 07:32:28 +0000 |
commit | 410641ccf4ed887b3988222678704a8c5569002d (patch) | |
tree | e698db3e6bb515c2a51359c13a11918a6b83210f /editparams.cgi | |
parent | Bug 308950 - add build ID parameter to guided page for non-browser products. ... (diff) | |
download | bugzilla-410641ccf4ed887b3988222678704a8c5569002d.tar.gz bugzilla-410641ccf4ed887b3988222678704a8c5569002d.tar.bz2 bugzilla-410641ccf4ed887b3988222678704a8c5569002d.zip |
Bug 277370: Ability to specify an email address to which notification about all bugs should go
Patch by Guillaume Rousse <guillomovitch@zarb.org> r=bkor a=myk
Diffstat (limited to 'editparams.cgi')
-rwxr-xr-x | editparams.cgi | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/editparams.cgi b/editparams.cgi index cbce6405f..80b458d90 100755 --- a/editparams.cgi +++ b/editparams.cgi @@ -32,6 +32,7 @@ use Bugzilla::Config::Common; use Bugzilla::Util; use Bugzilla::Error; use Bugzilla::Token; +use Bugzilla::User; my $user = Bugzilla->login(LOGIN_REQUIRED); my $cgi = Bugzilla->cgi; @@ -116,6 +117,15 @@ if ($action eq 'save' && $current_module) { if ($ok ne "") { ThrowUserError('invalid_parameter', { name => $name, err => $ok }); } + } elsif ($name eq 'globalwatchers') { + # can't check this as others, as Bugzilla::Config::Common + # can not use Bugzilla::User + foreach my $watcher (split(/[,\s]+/, $value)) { + ThrowUserError( + 'invalid_parameter', + { name => $name, err => "no such user $watcher" } + ) unless login_to_id($watcher); + } } push(@changes, $name); SetParam($name, $value); |