Commit 8cef0a14 authored by Frédéric Buclin's avatar Frédéric Buclin

Bug 635243: The guided form is broken, the version field is incorrectly populated

r=dkl a=LpSolit
parent 05509263
......@@ -512,11 +512,11 @@ if ( ($cloned_bug_id) &&
} elsif (formvalue('version')) {
$default{'version'} = formvalue('version');
} elsif (defined $version_cookie
and grep { $_ eq $version_cookie } @{ $vars->{'version'} })
and grep { $_->name eq $version_cookie } @{ $vars->{'version'} })
{
$default{'version'} = $version_cookie;
} else {
$default{'version'} = $vars->{'version'}->[$#{$vars->{'version'}}];
$default{'version'} = $vars->{'version'}->[$#{$vars->{'version'}}]->name;
}
# Get list of milestones.
......
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