From: lpsolit%gmail.com <> Date: Thu, 24 Jul 2008 14:08:32 +0000 (+0000) Subject: Bug 443852: "Reset QA Contact to default" fails with strict_isolation turned on if... X-Git-Tag: bugzilla-3.2rc1~29 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b025c179f3da5425a9ea8a3245470ac39af31224;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 b8f765d1ea..182b458e08 100644 --- a/Bugzilla/Bug.pm +++ b/Bugzilla/Bug.pm @@ -1314,8 +1314,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.