From: lpsolit%gmail.com <> Date: Thu, 24 Jul 2008 14:06:52 +0000 (+0000) Subject: Bug 443852: "Reset QA Contact to default" fails with strict_isolation turned on if... X-Git-Tag: bugzilla-3.3.1~263 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9f35bd3ea49acb8a372fb72a5829d68bf69bb857;p=thirdparty%2Fbugzilla.git 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 --- diff --git a/Bugzilla/Bug.pm b/Bugzilla/Bug.pm index b4636f9bd3..bade02f687 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.