From 4182ab63310c7f9a4886edc22ff50c8c68bd0282 Mon Sep 17 00:00:00 2001 From: "lpsolit%gmail.com" <> Date: Sun, 30 Dec 2007 23:59:09 +0000 Subject: Bug 410182: Bugzilla crashes when moving a bug into another product when no QA contact is defined and strict_isolation is enabled - Patch by Frédéric Buclin r/a=mkanat MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Bugzilla/Bug.pm | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'Bugzilla') diff --git a/Bugzilla/Bug.pm b/Bugzilla/Bug.pm index 466ceb988..70f2edd1d 100755 --- a/Bugzilla/Bug.pm +++ b/Bugzilla/Bug.pm @@ -1234,8 +1234,12 @@ sub _check_strict_isolation { $ccs = $added; $assignee = $invocant->assigned_to if $invocant->assigned_to->id != $original->assigned_to->id; - $qa_contact = $invocant->qa_contact - if $invocant->qa_contact->id != $original->qa_contact->id; + if ($invocant->qa_contact + && (!$original->qa_contact + || $invocant->qa_contact->id != $original->qa_contact->id)) + { + $qa_contact = $invocant->qa_contact; + } $product = $invocant->product; } -- cgit v1.2.3-24-g4f1b