summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordkl%redhat.com <>2002-10-30 01:27:30 +0100
committerdkl%redhat.com <>2002-10-30 01:27:30 +0100
commit9607ebb8145d27e3903b12459eedbf1948d91027 (patch)
tree703fc0450f7b4dafd52143a4960713d9d44ea461
parent7aede7bc1d9e270e2a1b817fe40750bedf56a270 (diff)
downloadbugzilla-9607ebb8145d27e3903b12459eedbf1948d91027.tar.gz
bugzilla-9607ebb8145d27e3903b12459eedbf1948d91027.tar.xz
Bug 176953 - version not set properly from form value like others in enter_bug.cgi. Patch by dkl; 2xr=justdave
-rwxr-xr-xenter_bug.cgi2
1 files changed, 2 insertions, 0 deletions
diff --git a/enter_bug.cgi b/enter_bug.cgi
index ab3e1512d..22c016bba 100755
--- a/enter_bug.cgi
+++ b/enter_bug.cgi
@@ -288,6 +288,8 @@ $vars->{'version'} = $::versions{$product} || [];
if (exists $::COOKIE{"VERSION-$product"} &&
lsearch($vars->{'version'}, $::COOKIE{"VERSION-$product"}) != -1) {
$default{'version'} = $::COOKIE{"VERSION-$product"};
+} elsif (formvalue('version')) {
+ $default{'version'} = formvalue('version');
} else {
$default{'version'} = $vars->{'version'}->[$#{$vars->{'version'}}];
}