From c15ee7a4d566c9e4911ac0cc0e94edb8d357709d Mon Sep 17 00:00:00 2001 From: "lpsolit%gmail.com" <> Date: Sun, 10 Apr 2005 06:18:16 +0000 Subject: Bug 225818: %FORM, %MFORM, and %COOKIE need to go away, in favor of the CGI methods - Patch by Teemu Mannermaa r=LpSolit a=myk --- post_bug.cgi | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'post_bug.cgi') diff --git a/post_bug.cgi b/post_bug.cgi index 218e3aaa7..0233fad83 100755 --- a/post_bug.cgi +++ b/post_bug.cgi @@ -111,7 +111,8 @@ my $component_id = get_component_id($product_id, scalar($cgi->param('component'))); $component_id || ThrowUserError("require_component"); -if (!$cgi->param('short_desc') || trim($cgi->param('short_desc')) eq "") { +if (!defined $cgi->param('short_desc') + || trim($cgi->param('short_desc')) eq "") { ThrowUserError("require_summary"); } @@ -163,7 +164,7 @@ if (Param("useqacontact")) { if (UserInGroup("editbugs") || UserInGroup("canconfirm")) { # Default to NEW if the user hasn't selected another status - if (!$cgi->param('bug_status')) { + if (!defined $cgi->param('bug_status')) { $cgi->param(-name => 'bug_status', -value => "NEW"); } } else { @@ -361,7 +362,6 @@ if (UserInGroup(Param("timetrackinggroup")) && if ((UserInGroup(Param("timetrackinggroup"))) && ($cgi->param('deadline'))) { Bugzilla::Util::ValidateDate($cgi->param('deadline'), 'YYYY-MM-DD'); - my $str = $cgi->param('deadline'); $sql .= SqlQuote($cgi->param('deadline')); } else { $sql .= "NULL"; -- cgit v1.2.3-24-g4f1b