summaryrefslogtreecommitdiffstats
path: root/Bugzilla
diff options
context:
space:
mode:
Diffstat (limited to 'Bugzilla')
-rwxr-xr-xBugzilla/Bug.pm13
1 files changed, 13 insertions, 0 deletions
diff --git a/Bugzilla/Bug.pm b/Bugzilla/Bug.pm
index 3e65ab9b3..343f49e18 100755
--- a/Bugzilla/Bug.pm
+++ b/Bugzilla/Bug.pm
@@ -288,6 +288,19 @@ sub _check_bug_status {
return $status;
}
+sub _check_cc {
+ my ($ccs) = @_;
+ return [] unless $ccs;
+
+ my %cc_ids;
+ foreach my $person (@$ccs) {
+ next unless $person;
+ my $id = login_to_id($person, THROW_ERROR);
+ $cc_ids{$id} = 1;
+ }
+ return [keys %cc_ids];
+}
+
sub _check_comment {
my ($comment) = @_;