Commit 703e02e8 authored by lpsolit%gmail.com's avatar lpsolit%gmail.com

Bug 390557: Uninitialized value in process_bug.cgi when user is in the…

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 <altlist@gmail.com> r/a=mkanat
parent 7f0c7ddd
......@@ -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');
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment