From: lpsolit%gmail.com <> Date: Mon, 7 Jul 2008 05:19:35 +0000 (+0000) Subject: Bug 443519: Changing Products with Strict Isolation fails when the CC list changes... X-Git-Tag: bugzilla-3.2rc1~34 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f99c2ab180fe51c093478d4fd36cce85e127215b;p=thirdparty%2Fbugzilla.git Bug 443519: Changing Products with Strict Isolation fails when the CC list changes at the same time - Patch by Alex Eiser r/a=LpSolit --- diff --git a/Bugzilla/Bug.pm b/Bugzilla/Bug.pm index d0eb69452a..b8f765d1ea 100644 --- a/Bugzilla/Bug.pm +++ b/Bugzilla/Bug.pm @@ -1398,7 +1398,8 @@ sub _check_strict_isolation { my @old_cc = map { $_->id } @{$original->cc_users}; my @new_cc = map { $_->id } @{$invocant->cc_users}; my ($removed, $added) = diff_arrays(\@old_cc, \@new_cc); - $ccs = $added; + $ccs = Bugzilla::User->new_from_list($added); + $assignee = $invocant->assigned_to if $invocant->assigned_to->id != $original->assigned_to->id; if ($invocant->qa_contact @@ -1407,7 +1408,7 @@ sub _check_strict_isolation { { $qa_contact = $invocant->qa_contact; } - $product = $invocant->product; + $product = $invocant->product_obj; } my @related_users = @$ccs;