зеркало из https://github.com/mozilla/pjs.git
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
This commit is contained in:
Родитель
b4d8b29652
Коммит
a1360d448e
|
@ -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');
|
||||
}
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче