Commit 2b7568cb authored by lpsolit%gmail.com's avatar lpsolit%gmail.com

Bug 314791: process_bug.cgi should not complain if 'knob' is undefined - Patch…

Bug 314791: process_bug.cgi should not complain if 'knob' is undefined - Patch by Frédéric Buclin <LpSolit@gmail.com> r=wurblzap a=justdave
parent c946b2e8
......@@ -120,6 +120,9 @@ scalar(@idlist) || ThrowUserError("no_bugs_chosen");
# Make sure form param 'dontchange' is defined so it can be compared to easily.
$cgi->param('dontchange','') unless defined $cgi->param('dontchange');
# Make sure the 'knob' param is defined; else set it to 'none'.
$cgi->param('knob', 'none') unless defined $cgi->param('knob');
# Validate all timetracking fields
foreach my $field ("estimated_time", "work_time", "remaining_time") {
if (defined $cgi->param($field)) {
......@@ -1025,7 +1028,6 @@ if (defined $cgi->param('qa_contact')
}
}
check_form_field_defined($cgi, 'knob');
SWITCH: for ($cgi->param('knob')) {
/^none$/ && do {
last SWITCH;
......
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