From 8ea64d14a889e8ab31b15d488d9e6d16c0f6a534 Mon Sep 17 00:00:00 2001 From: "dave%intrec.com" <> Date: Sun, 10 Sep 2000 23:54:04 +0000 Subject: 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. --- editcomponents.cgi | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) (limited to 'editcomponents.cgi') diff --git a/editcomponents.cgi b/editcomponents.cgi index 1abe62253..4714a4d8a 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 -- cgit v1.2.3-24-g4f1b