From 9f35bd3ea49acb8a372fb72a5829d68bf69bb857 Mon Sep 17 00:00:00 2001 From: "lpsolit%gmail.com" <> Date: Thu, 24 Jul 2008 14:06:52 +0000 Subject: 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 r/a=mkanat MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Bugzilla/Bug.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Bugzilla/Bug.pm') 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. -- cgit v1.2.3-24-g4f1b