]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 314791: process_bug.cgi should not complain if 'knob' is undefined - Patch by...
authorlpsolit%gmail.com <>
Fri, 4 Nov 2005 17:47:34 +0000 (17:47 +0000)
committerlpsolit%gmail.com <>
Fri, 4 Nov 2005 17:47:34 +0000 (17:47 +0000)
process_bug.cgi

index a7c0e6754453a8cf8795cab7fedbbf79b7ba0c71..7d84bfee6543bc025d911e6e839a8c94ebc0b5e1 100755 (executable)
@@ -117,6 +117,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)) {
@@ -931,7 +934,6 @@ if (defined $cgi->param('qa_contact')
     }
 }
 
-CheckFormFieldDefined($cgi, 'knob');
 SWITCH: for ($cgi->param('knob')) {
     /^none$/ && do {
         last SWITCH;