summaryrefslogtreecommitdiffstats
path: root/editcomponents.cgi
diff options
context:
space:
mode:
authorjustdave%syndicomm.com <>2002-02-04 09:41:40 +0100
committerjustdave%syndicomm.com <>2002-02-04 09:41:40 +0100
commit7398c1d65281cf04584652f3b854dc5e9d471175 (patch)
treef8a657772a834c25c00539d09ed6afb1a69fa644 /editcomponents.cgi
parent0742929eb43ee5e3e67b59a9159ca416cbd0d4be (diff)
downloadbugzilla-7398c1d65281cf04584652f3b854dc5e9d471175.tar.gz
bugzilla-7398c1d65281cf04584652f3b854dc5e9d471175.tar.xz
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 <matty@chariot.net.au> r= justdave x 2
Diffstat (limited to 'editcomponents.cgi')
-rwxr-xr-xeditcomponents.cgi24
1 files changed, 3 insertions, 21 deletions
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 <holgerschurig@nikocity.de>
-# Terry Weissman <terry@mozilla.org>
+# Terry Weissman <terry@mozilla.org>
#
# 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 "<b>Back</b> 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 "<b>Back</b> 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);