summaryrefslogtreecommitdiffstats
path: root/process_bug.cgi
diff options
context:
space:
mode:
authorlpsolit%gmail.com <>2005-11-04 18:44:53 +0100
committerlpsolit%gmail.com <>2005-11-04 18:44:53 +0100
commit2b7568cbae90b86fc2e91219ab6e083132d16762 (patch)
treeb3800bbc5b5d7fd0465f10b8cf01caae34c5b8ff /process_bug.cgi
parentc946b2e89de81719198303267889c5753e497055 (diff)
downloadbugzilla-2b7568cbae90b86fc2e91219ab6e083132d16762.tar.gz
bugzilla-2b7568cbae90b86fc2e91219ab6e083132d16762.tar.xz
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
Diffstat (limited to 'process_bug.cgi')
-rwxr-xr-xprocess_bug.cgi4
1 files changed, 3 insertions, 1 deletions
diff --git a/process_bug.cgi b/process_bug.cgi
index f21877c45..678bbc002 100755
--- a/process_bug.cgi
+++ b/process_bug.cgi
@@ -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;