From: dave%intrec.com <> Date: Sun, 10 Sep 2000 23:54:04 +0000 (+0000) Subject: Fix for bug 51487: Now only checks for a valid QA Contact if it actually X-Git-Tag: bugzilla-2.12~169 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8ea64d14a889e8ab31b15d488d9e6d16c0f6a534;p=thirdparty%2Fbugzilla.git Fix for bug 51487: Now only checks for a valid QA Contact if it actually asked you for one. Thanks to bg.mahesh@team.indiainfo.com (B.G. Mahesh) for catching this. --- diff --git a/editcomponents.cgi b/editcomponents.cgi index 1abe622535..4714a4d8a4 100755 --- a/editcomponents.cgi +++ b/editcomponents.cgi @@ -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