aboutsummaryrefslogtreecommitdiff
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 /enter_bug.cgi
parentBug 634826: .htaccess file permissions are not set by checksetup.pl (diff)
downloadbugzilla-8cef0a14747ab7b9a1b9e2dfb98fe44eeace06d6.tar.gz
bugzilla-8cef0a14747ab7b9a1b9e2dfb98fe44eeace06d6.tar.bz2
bugzilla-8cef0a14747ab7b9a1b9e2dfb98fe44eeace06d6.zip
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-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.