Commit 08a9a5b6 authored by Vladislav Bolshakov's avatar Vladislav Bolshakov Committed by System Administrator

barbass: правки для сохранения work_time

parent 23dcf394
......@@ -720,6 +720,11 @@ sub create {
my $creation_comment = delete $params->{comment};
my $see_also = delete $params->{see_also};
my $work_time = delete $params->{work_time};
if (!$work_time) {
$work_time = 0;
}
# We don't want the bug to appear in the system until it's correctly
# protected by groups.
my $timestamp = delete $params->{creation_ts};
......@@ -805,7 +810,9 @@ sub create {
# We now have a bug id so we can fill this out
$creation_comment->{'bug_id'} = $bug->id;
$creation_comment->{'work_time'} = $work_time;
# Insert the comment. We always insert a comment on bug creation,
# but sometimes it's blank.
Bugzilla::Comment->insert_create_data($creation_comment);
......@@ -1531,6 +1538,18 @@ sub _check_bug_status {
$params->{everconfirmed} = $new_status->name eq 'UNCONFIRMED' ? 0 : 1;
}
# eterbug #8986
# только инициатор баги или член группы EtersoftAdm может закрыть багу
#if (ref $invocant
# && $new_status->name eq 'CLOSED'
# && (
# $user->id != $invocant->reporter->id &&
# $user->in_group('EtersoftAdm') != 1
# )
#) {
# ThrowUserError('user_closes_bug');
#}
return $new_status->name;
}
......
......@@ -91,6 +91,7 @@ push(@bug_fields, qw(
alias
blocked
comment_is_private
work_time
bug_file_loc
bug_severity
bug_status
......
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