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
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
bugzilla
Commits
6c418d66
Commit
6c418d66
authored
Oct 19, 2011
by
Tiago Mello
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 686963: Setting the work time using the Bug.update WebService method
requires a comment. r/a=LpSolit
parent
25603c49
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
7 deletions
+9
-7
Bug.pm
Bugzilla/Bug.pm
+9
-7
No files found.
Bugzilla/Bug.pm
View file @
6c418d66
...
@@ -2671,20 +2671,22 @@ sub add_comment {
...
@@ -2671,20 +2671,22 @@ sub add_comment {
$params
||=
{};
$params
||=
{};
# This makes it so we won't create new comments when there is nothing
# to add
if
(
$comment
eq
''
&&
!
(
$params
->
{
type
}
||
abs
(
$params
->
{
work_time
}
||
0
)))
{
return
;
}
# Fill out info that doesn't change and callers may not pass in
# Fill out info that doesn't change and callers may not pass in
$params
->
{
'bug_id'
}
=
$self
;
$params
->
{
'bug_id'
}
=
$self
;
$params
->
{
'thetext'
}
=
$comment
;
$params
->
{
'thetext'
}
=
defined
(
$comment
)
?
$comment
:
''
;
# Validate all the entered data
# Validate all the entered data
Bugzilla::
Comment
->
check_required_create_fields
(
$params
);
Bugzilla::
Comment
->
check_required_create_fields
(
$params
);
$params
=
Bugzilla::
Comment
->
run_create_validators
(
$params
);
$params
=
Bugzilla::
Comment
->
run_create_validators
(
$params
);
# This makes it so we won't create new comments when there is nothing
# to add
if
(
$params
->
{
'thetext'
}
eq
''
&&
!
(
$params
->
{
type
}
||
abs
(
$params
->
{
work_time
}
||
0
)))
{
return
;
}
# If the user has explicitly set remaining_time, this will be overridden
# If the user has explicitly set remaining_time, this will be overridden
# later in set_all. But if they haven't, this keeps remaining_time
# later in set_all. But if they haven't, this keeps remaining_time
# up-to-date.
# up-to-date.
...
...
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