]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Fix for bug 51487: Now only checks for a valid QA Contact if it actually
authordave%intrec.com <>
Sun, 10 Sep 2000 23:54:04 +0000 (23:54 +0000)
committerdave%intrec.com <>
Sun, 10 Sep 2000 23:54:04 +0000 (23:54 +0000)
asked you for one.  Thanks to bg.mahesh@team.indiainfo.com (B.G. Mahesh)
for catching this.

editcomponents.cgi

index 1abe62253558a9fc4957ecb129f4d825453aa40c..4714a4d8a422de3a96f23532d0536bd47c6b1b6d 100755 (executable)
@@ -397,14 +397,8 @@ if ($action eq 'new') {
         PutTrailer($localtrailer);
         exit;
     }
-    #+++
 
     my $initialqacontact = trim($::FORM{initialqacontact} || '');
-       #
-       # Now validating to make sure it's too an existing account
-       #
-       DBNameToIdAndCheck($initialqacontact);
-
     if (Param('useqacontact')) {
         if ($initialqacontact eq '') {
             print "You must enter an initial QA contact for the component '$component'. Please press\n";
@@ -412,8 +406,10 @@ if ($action eq 'new') {
             PutTrailer($localtrailer);
             exit;
         }
-        #+++
-        #DBNameToIdAndCheck($initialqacontact, 0);
+       #
+       # Now validating to make sure it's too an existing account
+       #
+       DBNameToIdAndCheck($initialqacontact);
     }
 
     # Add the new component