summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorterry%mozilla.org <>2000-01-18 07:31:05 +0100
committerterry%mozilla.org <>2000-01-18 07:31:05 +0100
commit73a2b84f97557995f90ee0617e9e1248c5a60a4e (patch)
tree09aec0f5333f33648e7884762be8b2003f6f093e
parentdad36ba0899173fa8612127c74bde9e63f86b9e4 (diff)
downloadbugzilla-73a2b84f97557995f90ee0617e9e1248c5a60a4e.tar.gz
bugzilla-73a2b84f97557995f90ee0617e9e1248c5a60a4e.tar.xz
Was sometimes checking extra checkboxes in the email area.
-rwxr-xr-xquery.cgi21
1 files changed, 11 insertions, 10 deletions
diff --git a/query.cgi b/query.cgi
index 5584ee2b3..092c5b306 100755
--- a/query.cgi
+++ b/query.cgi
@@ -139,18 +139,10 @@ sub GenerateEmailInput {
my $reporter = ($default{"emailreporter$id"} eq "1") ? "checked" : "";
my $cc = ($default{"emailcc$id"} eq "1") ? "checked" : "";
- if ($assignedto eq "" && $reporter eq "" && $cc eq "") {
- if ($id eq "1") {
- $assignedto = "checked";
- } else {
- $reporter = "checked";
- }
- }
-
my $qapart = "";
+ my $qacontact = "";
if (Param("useqacontact")) {
- my $qacontact =
- ($default{"emailqa_contact$id"} eq "1") ? "checked" : "";
+ $qacontact = ($default{"emailqa_contact$id"} eq "1") ? "checked" : "";
$qapart = qq|
<tr>
<td></td>
@@ -160,6 +152,15 @@ sub GenerateEmailInput {
</tr>
|;
}
+ if ($assignedto eq "" && $reporter eq "" && $cc eq "" &&
+ $qacontact eq "") {
+ if ($id eq "1") {
+ $assignedto = "checked";
+ } else {
+ $reporter = "checked";
+ }
+ }
+
return qq|
<table border=1 cellspacing=0 cellpadding=0>