aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlpsolit%gmail.com <>2007-08-02 17:43:16 +0000
committerlpsolit%gmail.com <>2007-08-02 17:43:16 +0000
commit703e02e8fa2006739bd9a4137f2edc1692d4a780 (patch)
treefa3970b42708e19a1a8a7caa3d51bb7f3890f14f
parent7f0c7dddde8bb8d619b3449b3fb19aabe9fea686 (diff)
downloadbugs-703e02e8fa2006739bd9a4137f2edc1692d4a780.tar
bugs-703e02e8fa2006739bd9a4137f2edc1692d4a780.tar.gz
bugs-703e02e8fa2006739bd9a4137f2edc1692d4a780.tar.bz2
bugs-703e02e8fa2006739bd9a4137f2edc1692d4a780.tar.xz
bugs-703e02e8fa2006739bd9a4137f2edc1692d4a780.zip
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
-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');
}
}