From 703e02e8fa2006739bd9a4137f2edc1692d4a780 Mon Sep 17 00:00:00 2001 From: "lpsolit%gmail.com" <> Date: Thu, 2 Aug 2007 17:43:16 +0000 Subject: Bug 390557: Uninitialized value in process_bug.cgi when user is in the timetracking group and there's no comment field - Patch by Albert Ting r/a=mkanat --- process_bug.cgi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'process_bug.cgi') diff --git a/process_bug.cgi b/process_bug.cgi index 14d6c4ce7..2fa74dbfd 100755 --- a/process_bug.cgi +++ b/process_bug.cgi @@ -154,7 +154,7 @@ if (defined $cgi->param('work_time') if (Bugzilla->user->in_group(Bugzilla->params->{'timetrackinggroup'})) { my $wk_time = $cgi->param('work_time'); - if ($cgi->param('comment') =~ /^\s*$/ && $wk_time && $wk_time != 0) { + if (!comment_exists() && $wk_time && $wk_time != 0) { ThrowUserError('comment_required'); } } -- cgit v1.2.3-24-g4f1b