From 7398c1d65281cf04584652f3b854dc5e9d471175 Mon Sep 17 00:00:00 2001 From: "justdave%syndicomm.com" <> Date: Mon, 4 Feb 2002 08:41:40 +0000 Subject: Fix for bug 14461: QA contact is no longer required. You can still leave it blank in editing and creating components if you want, even if it's enabled now. This is consistant with the behavior of this field everywhere else in Bugzilla now. Eventually this will be a per-product setting whether to enforce having one or not. Patch by Matthew Tuck r= justdave x 2 --- editcomponents.cgi | 24 +++--------------------- 1 file changed, 3 insertions(+), 21 deletions(-) (limited to 'editcomponents.cgi') diff --git a/editcomponents.cgi b/editcomponents.cgi index 2950e288f..4d4079626 100755 --- a/editcomponents.cgi +++ b/editcomponents.cgi @@ -19,7 +19,7 @@ # Rights Reserved. # # Contributor(s): Holger Schurig -# Terry Weissman +# Terry Weissman # # Direct any questions on this source code to # @@ -418,23 +418,12 @@ if ($action eq 'new') { my $initialqacontact = trim($::FORM{initialqacontact} || ''); my $initialqacontactid = DBname_to_id ($initialqacontact); if (Param('useqacontact')) { - if ($initialqacontact eq '') { - print "You must enter an initial QA contact for the component '$component'. Please press\n"; - print "Back and try again.\n"; - PutTrailer($localtrailer); - exit; - } - - if (!$initialqacontactid) { + if (!$initialqacontactid && $initialqacontact ne '') { print "You must use an existing Bugzilla account as initial QA contact for the component '$component'. Please press\n"; print "Back and try again.\n"; PutTrailer($localtrailer); exit; } - # - # Now validating to make sure it's too an existing account - # - DBNameToIdAndCheck($initialqacontact); } # Add the new component @@ -767,15 +756,8 @@ if ($action eq 'update') { } if (Param('useqacontact') && $initialqacontact ne $initialqacontactold) { - unless ($initialqacontact) { - print "Sorry, I can't delete the initial QA contact."; - SendSQL("UNLOCK TABLES"); - PutTrailer($localtrailer); - exit; - } - my $initialqacontactid = DBname_to_id($initialqacontact); - unless ($initialqacontactid) { + if (!$initialqacontactid && $initialqacontact ne '') { print "Sorry, you must use an existing Bugzilla account as initial QA contact."; SendSQL("UNLOCK TABLES"); PutTrailer($localtrailer); -- cgit v1.2.3-24-g4f1b