diff options
author | Frédéric Buclin <LpSolit@gmail.com> | 2011-02-18 17:43:16 +0100 |
---|---|---|
committer | Frédéric Buclin <LpSolit@gmail.com> | 2011-02-18 17:43:16 +0100 |
commit | 8cef0a14747ab7b9a1b9e2dfb98fe44eeace06d6 (patch) | |
tree | 304633eb541b7e17dcc34ba1c4ae051b79084826 /enter_bug.cgi | |
parent | 0550926332afc54b497af18c20e97e93e070b135 (diff) | |
download | bugzilla-8cef0a14747ab7b9a1b9e2dfb98fe44eeace06d6.tar.gz bugzilla-8cef0a14747ab7b9a1b9e2dfb98fe44eeace06d6.tar.xz |
Bug 635243: The guided form is broken, the version field is incorrectly populated
r=dkl a=LpSolit
Diffstat (limited to 'enter_bug.cgi')
-rwxr-xr-x | enter_bug.cgi | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/enter_bug.cgi b/enter_bug.cgi index 2b54800cc..ffba2b09f 100755 --- a/enter_bug.cgi +++ b/enter_bug.cgi @@ -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. |