summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlpsolit%gmail.com <>2007-12-31 00:59:09 +0100
committerlpsolit%gmail.com <>2007-12-31 00:59:09 +0100
commit4182ab63310c7f9a4886edc22ff50c8c68bd0282 (patch)
tree520d4bb43961d1643090a180d76ff82b55bf234c
parent44d7e6bdfee8136788331d038dd375e6a3b63c48 (diff)
downloadbugzilla-4182ab63310c7f9a4886edc22ff50c8c68bd0282.tar.gz
bugzilla-4182ab63310c7f9a4886edc22ff50c8c68bd0282.tar.xz
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 <LpSolit@gmail.com> r/a=mkanat
-rwxr-xr-xBugzilla/Bug.pm8
1 files changed, 6 insertions, 2 deletions
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;
}