diff options
author | lpsolit%gmail.com <> | 2007-08-02 17:43:16 +0000 |
---|---|---|
committer | lpsolit%gmail.com <> | 2007-08-02 17:43:16 +0000 |
commit | 703e02e8fa2006739bd9a4137f2edc1692d4a780 (patch) | |
tree | fa3970b42708e19a1a8a7caa3d51bb7f3890f14f | |
parent | 7f0c7dddde8bb8d619b3449b3fb19aabe9fea686 (diff) | |
download | bugs-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-x | process_bug.cgi | 2 |
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'); } } |