From: lpsolit%gmail.com <> Date: Sun, 30 Dec 2007 23:59:09 +0000 (+0000) Subject: Bug 410182: Bugzilla crashes when moving a bug into another product when no QA contac... X-Git-Tag: bugzilla-3.1.3~415 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4182ab63310c7f9a4886edc22ff50c8c68bd0282;p=thirdparty%2Fbugzilla.git 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 --- diff --git a/Bugzilla/Bug.pm b/Bugzilla/Bug.pm index 466ceb988d..70f2edd1d6 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; }