]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 410182: Bugzilla crashes when moving a bug into another product when no QA contac...
authorlpsolit%gmail.com <>
Sun, 30 Dec 2007 23:59:09 +0000 (23:59 +0000)
committerlpsolit%gmail.com <>
Sun, 30 Dec 2007 23:59:09 +0000 (23:59 +0000)
Bugzilla/Bug.pm

index 466ceb988d5948780c6c89b79f763eef4beeded7..70f2edd1d6a514eb9c3770798509f4ba6bd8c450 100755 (executable)
@@ -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;
     }