summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrédéric Buclin <LpSolit@gmail.com>2011-02-18 17:43:16 +0100
committerFrédéric Buclin <LpSolit@gmail.com>2011-02-18 17:43:16 +0100
commit8cef0a14747ab7b9a1b9e2dfb98fe44eeace06d6 (patch)
tree304633eb541b7e17dcc34ba1c4ae051b79084826
parent0550926332afc54b497af18c20e97e93e070b135 (diff)
downloadbugzilla-8cef0a14747ab7b9a1b9e2dfb98fe44eeace06d6.tar.gz
bugzilla-8cef0a14747ab7b9a1b9e2dfb98fe44eeace06d6.tar.xz
Bug 635243: The guided form is broken, the version field is incorrectly populated
r=dkl a=LpSolit
-rwxr-xr-xenter_bug.cgi4
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.