Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
bugzilla
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ivan Ivlev
bugzilla
Commits
08a9a5b6
Commit
08a9a5b6
authored
Dec 02, 2014
by
Vladislav Bolshakov
Committed by
System Administrator
Nov 13, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
barbass: правки для сохранения work_time
parent
23dcf394
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
1 deletion
+21
-1
Bug.pm
Bugzilla/Bug.pm
+20
-1
post_bug.cgi
post_bug.cgi
+1
-0
No files found.
Bugzilla/Bug.pm
View file @
08a9a5b6
...
...
@@ -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
;
}
...
...
post_bug.cgi
View file @
08a9a5b6
...
...
@@ -91,6 +91,7 @@ push(@bug_fields, qw(
alias
blocked
comment_is_private
work_time
bug_file_loc
bug_severity
bug_status
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment