]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 443852: "Reset QA Contact to default" fails with strict_isolation turned on if...
authorlpsolit%gmail.com <>
Thu, 24 Jul 2008 14:08:32 +0000 (14:08 +0000)
committerlpsolit%gmail.com <>
Thu, 24 Jul 2008 14:08:32 +0000 (14:08 +0000)
Bugzilla/Bug.pm

index b8f765d1eaa073facb97356a5e39eb1c09b84a13..182b458e088578012ef28cf6e7051a8440283991 100644 (file)
@@ -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.