Commit 9607ebb8 authored by dkl%redhat.com's avatar dkl%redhat.com

Bug 176953 - version not set properly from form value like others in…

Bug 176953 - version not set properly from form value like others in enter_bug.cgi. Patch by dkl; 2xr=justdave
parent 7aede7bc
......@@ -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'}}];
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment