Commit a1f68bd5 authored by lpsolit%gmail.com's avatar lpsolit%gmail.com

Bug 303147: Bugzilla crashes when submitting a bug in the UNCONFIRMED state…

Bug 303147: Bugzilla crashes when submitting a bug in the UNCONFIRMED state using PostgreSQL - Patch by Frédéric Buclin <LpSolit@gmail.com> r=mkanat a=justdave
parent 1da7e6ad
......@@ -139,7 +139,7 @@ if (!UserInGroup("editbugs") || $cgi->param('assigned_to') eq "") {
my @bug_fields = ("version", "rep_platform",
"bug_severity", "priority", "op_sys", "assigned_to",
"bug_status", "bug_file_loc", "short_desc",
"bug_status", "everconfirmed", "bug_file_loc", "short_desc",
"target_milestone", "status_whiteboard");
if (Param("usebugaliases")) {
......@@ -208,6 +208,9 @@ check_form_field_defined($cgi, 'assigned_to');
check_form_field_defined($cgi, 'bug_file_loc');
check_form_field_defined($cgi, 'comment');
my $everconfirmed = ($cgi->param('bug_status') eq 'UNCONFIRMED') ? 0 : 1;
$cgi->param(-name => 'everconfirmed', -value => $everconfirmed);
my @used_fields;
foreach my $field (@bug_fields) {
if (defined $cgi->param($field)) {
......@@ -215,13 +218,6 @@ foreach my $field (@bug_fields) {
}
}
if (defined $cgi->param('bug_status')
&& $cgi->param('bug_status') ne 'UNCONFIRMED')
{
push(@used_fields, "everconfirmed");
$cgi->param(-name => 'everconfirmed', -value => 1);
}
$cgi->param(-name => 'product_id', -value => $product_id);
push(@used_fields, "product_id");
$cgi->param(-name => 'component_id', -value => $component_id);
......
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