]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 382037: Default CC is ignored when a bug is created via the webservice
authormkanat%bugzilla.org <>
Sat, 26 May 2007 04:42:53 +0000 (04:42 +0000)
committermkanat%bugzilla.org <>
Sat, 26 May 2007 04:42:53 +0000 (04:42 +0000)
Patch By Max Kanat-Alexander <mkanat@bugzilla.org> r=LpSolit, a=LpSolit

Bugzilla/Bug.pm

index e523621e0fd3449b5dcd8cd159c5cc2103955aab..dcaef8004bf123e066bb045343f1e8c0e081e019 100755 (executable)
@@ -623,7 +623,7 @@ sub _check_bug_status {
 
 sub _check_cc {
     my ($invocant, $component, $ccs) = @_;
-    return [] unless $ccs;
+    return [map {$_->id} @{$component->initial_cc}] unless $ccs;
 
     my %cc_ids;
     foreach my $person (@$ccs) {