aboutsummaryrefslogtreecommitdiffstats
path: root/bug_form.pl
diff options
context:
space:
mode:
authordmose%mozilla.org <>2000-07-28 12:12:33 +0000
committerdmose%mozilla.org <>2000-07-28 12:12:33 +0000
commit1552368b2fd931bcc5d0e63a0e0b7c5f1cbd9632 (patch)
treeaf32754bef22adf25120e34a71f6df5db4904a65 /bug_form.pl
parent09607b481dc69b2c88948f9ead832871fbb4c16c (diff)
downloadbugs-1552368b2fd931bcc5d0e63a0e0b7c5f1cbd9632.tar
bugs-1552368b2fd931bcc5d0e63a0e0b7c5f1cbd9632.tar.gz
bugs-1552368b2fd931bcc5d0e63a0e0b7c5f1cbd9632.tar.bz2
bugs-1552368b2fd931bcc5d0e63a0e0b7c5f1cbd9632.tar.xz
bugs-1552368b2fd931bcc5d0e63a0e0b7c5f1cbd9632.zip
A menu was being created too early, before it is possible to avoid
creating the menu with an invalid default selection. This was causing bugzilla to (incorrectly) spew a database corruption error when attempting to view a bug that had been resolved MOVED. Why this wasn't causing the same problem with DUPLICATE resolutions, I don't know. Moved the menu creation later in the code, so that it only happens after it has been ensured that the default selection is not going to be MOVED.
Diffstat (limited to 'bug_form.pl')
-rw-r--r--bug_form.pl4
1 files changed, 2 insertions, 2 deletions
diff --git a/bug_form.pl b/bug_form.pl
index c41b51e6e..3216ba42f 100644
--- a/bug_form.pl
+++ b/bug_form.pl
@@ -140,8 +140,6 @@ GetVersionTable();
# These should be read from the database ...
#
-my $resolution_popup = make_options(\@::settable_resolution,
- $bug{'resolution'});
my $platform_popup = make_options(\@::legal_platform, $bug{'rep_platform'});
my $priority_popup = make_options(\@::legal_priority, $bug{'priority'});
my $sev_popup = make_options(\@::legal_severity, $bug{'bug_severity'});
@@ -445,6 +443,8 @@ if ($canedit || $::userid == $assignedtoid ||
print "<b>$bug{'resolution'}</b>)<br>\n";
$knum++;
}
+ my $resolution_popup = make_options(\@::settable_resolution,
+ $bug{'resolution'});
print "<INPUT TYPE=radio NAME=knob VALUE=resolve>
Resolve bug, changing <A HREF=\"bug_status.html\">resolution</A> to
<SELECT NAME=resolution