From c21fe094db334a5cf01f5bc36bc6dc8a6103be4a Mon Sep 17 00:00:00 2001 From: "lpsolit%gmail.com" Date: Fri, 4 Nov 2005 09:44:53 +0000 Subject: [PATCH] =?UTF-8?q?Bug=20314791:=20process=5Fbug.cgi=20should=20no?= =?UTF-8?q?t=20complain=20if=20'knob'=20is=20undefined=20-=20Patch=20by=20?= =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Buclin=20=20r=3Dwurblza?= =?UTF-8?q?p=20a=3Djustdave?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: svn://10.0.0.236/trunk@184134 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/webtools/bugzilla/process_bug.cgi | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mozilla/webtools/bugzilla/process_bug.cgi b/mozilla/webtools/bugzilla/process_bug.cgi index f21877c4593..678bbc002ef 100755 --- a/mozilla/webtools/bugzilla/process_bug.cgi +++ b/mozilla/webtools/bugzilla/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;