From: Frédéric Buclin Date: Fri, 18 Feb 2011 16:43:16 +0000 (+0100) Subject: Bug 635243: The guided form is broken, the version field is incorrectly populated X-Git-Tag: bugzilla-4.1.1~33 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8cef0a14747ab7b9a1b9e2dfb98fe44eeace06d6;p=thirdparty%2Fbugzilla.git Bug 635243: The guided form is broken, the version field is incorrectly populated r=dkl a=LpSolit --- diff --git a/enter_bug.cgi b/enter_bug.cgi index 2b54800cc9..ffba2b09f0 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.