diff options
author | Byron Jones <glob@mozilla.com> | 2015-07-15 09:02:19 +0200 |
---|---|---|
committer | Byron Jones <glob@mozilla.com> | 2015-07-15 09:02:19 +0200 |
commit | e2635d9f405ec8b6f22b58d2ec1ec72c22d91df2 (patch) | |
tree | c502cfb9479ee53c811d0e0cb5dd0e590ea7ce94 /Bugzilla | |
parent | 7a87266845224adb56547f775ddbb01914a73d7f (diff) | |
download | bugzilla-e2635d9f405ec8b6f22b58d2ec1ec72c22d91df2.tar.gz bugzilla-e2635d9f405ec8b6f22b58d2ec1ec72c22d91df2.tar.xz |
Bug 1183975 - limit the number of accounts a new user can add to any multi-user field
Diffstat (limited to 'Bugzilla')
-rw-r--r-- | Bugzilla/Bug.pm | 2 | ||||
-rw-r--r-- | Bugzilla/Flag.pm | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/Bugzilla/Bug.pm b/Bugzilla/Bug.pm index d105dd005..042f9c801 100644 --- a/Bugzilla/Bug.pm +++ b/Bugzilla/Bug.pm @@ -2665,7 +2665,7 @@ sub set_estimated_time { $_[0]->set('estimated_time', $_[1]); } sub _set_everconfirmed { $_[0]->set('everconfirmed', $_[1]); } sub set_flags { my ($self, $flags, $new_flags) = @_; - + Bugzilla::Hook::process('bug_set_flags', { bug => $self, flags => $flags, new_flags => $new_flags }); Bugzilla::Flag->set_flag($self, $_) foreach (@$flags, @$new_flags); } sub set_op_sys { $_[0]->set('op_sys', $_[1]); } diff --git a/Bugzilla/Flag.pm b/Bugzilla/Flag.pm index 830c60a57..07041bd79 100644 --- a/Bugzilla/Flag.pm +++ b/Bugzilla/Flag.pm @@ -1014,6 +1014,7 @@ sub notify { } my $cc_list = $flag ? $flag->type->cc_list : $old_flag->type->cc_list; + $cc_list //= ''; # Is there someone to notify? return unless ($addressee || $cc_list); |