]> 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:06:52 +0000 (14:06 +0000)
committerlpsolit%gmail.com <>
Thu, 24 Jul 2008 14:06:52 +0000 (14:06 +0000)
Bugzilla/Bug.pm

index b4636f9bd3012c0da35ec3e7704c089a9478e076..bade02f687df439fcf0ed504455be826205bb2db 100644 (file)
@@ -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.