summaryrefslogtreecommitdiffstats
path: root/enter_bug.cgi
diff options
context:
space:
mode:
Diffstat (limited to 'enter_bug.cgi')
-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'}}];
}