From 2b7568cbae90b86fc2e91219ab6e083132d16762 Mon Sep 17 00:00:00 2001 From: "lpsolit%gmail.com" <> Date: Fri, 4 Nov 2005 17:44:53 +0000 Subject: =?UTF-8?q?Bug=20314791:=20process=5Fbug.cgi=20should=20not=20comp?= =?UTF-8?q?lain=20if=20'knob'=20is=20undefined=20-=20Patch=20by=20Fr=C3=A9?= =?UTF-8?q?d=C3=A9ric=20Buclin=20=20r=3Dwurblzap=20a=3D?= =?UTF-8?q?justdave?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- process_bug.cgi | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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; -- cgit v1.2.1