summaryrefslogtreecommitdiffstats
path: root/process_bug.cgi
diff options
context:
space:
mode:
authorlpsolit%gmail.com <>2007-08-02 19:43:16 +0200
committerlpsolit%gmail.com <>2007-08-02 19:43:16 +0200
commit703e02e8fa2006739bd9a4137f2edc1692d4a780 (patch)
treefa3970b42708e19a1a8a7caa3d51bb7f3890f14f /process_bug.cgi
parent7f0c7dddde8bb8d619b3449b3fb19aabe9fea686 (diff)
downloadbugzilla-703e02e8fa2006739bd9a4137f2edc1692d4a780.tar.gz
bugzilla-703e02e8fa2006739bd9a4137f2edc1692d4a780.tar.xz
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
Diffstat (limited to 'process_bug.cgi')
-rwxr-xr-xprocess_bug.cgi2
1 files changed, 1 insertions, 1 deletions
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');
}
}