summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlpsolit%gmail.com <>2008-07-24 16:06:52 +0200
committerlpsolit%gmail.com <>2008-07-24 16:06:52 +0200
commit9f35bd3ea49acb8a372fb72a5829d68bf69bb857 (patch)
treeef3c8a528244d42faa29d245e5b8ba6d93db0e25
parent1929d7a070ce311b7c0534eb1752d410d5e7d20b (diff)
downloadbugzilla-9f35bd3ea49acb8a372fb72a5829d68bf69bb857.tar.gz
bugzilla-9f35bd3ea49acb8a372fb72a5829d68bf69bb857.tar.xz
Bug 443852: "Reset QA Contact to default" fails with strict_isolation turned on if there is no default QA contact - Patch by Frédéric Buclin <LpSolit@gmail.com> r/a=mkanat
-rw-r--r--Bugzilla/Bug.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/Bugzilla/Bug.pm b/Bugzilla/Bug.pm
index b4636f9bd..bade02f68 100644
--- a/Bugzilla/Bug.pm
+++ b/Bugzilla/Bug.pm
@@ -1338,8 +1338,9 @@ sub _check_qa_contact {
$id = $qa_contact->id;
# create() checks this another way, so we don't have to run this
# check during create().
+ # If there is no QA contact, this check is not required.
$invocant->_check_strict_isolation_for_user($qa_contact)
- if ref $invocant;
+ if (ref $invocant && $id);
}
# "0" always means "undef", for QA Contact.