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
5bf043ee
Commit
5bf043ee
authored
Nov 26, 2008
by
mkanat%bugzilla.org
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 466406: Passing an empty comment to Bug.add_comment fails silently
Patch By Max Kanat-Alexander <mkanat@bugzilla.org> r=LpSolit, a=mkanat
parent
bb9d68e2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
Bug.pm
Bugzilla/WebService/Bug.pm
+4
-1
No files found.
Bugzilla/WebService/Bug.pm
View file @
5bf043ee
...
...
@@ -29,6 +29,7 @@ use Bugzilla::Field;
use
Bugzilla::WebService::
Constants
;
use
Bugzilla::
Bug
;
use
Bugzilla::
BugMail
;
use
Bugzilla::
Util
qw(trim)
;
#############
# Constants #
...
...
@@ -233,7 +234,7 @@ sub add_comment {
defined
$params
->
{
id
}
||
ThrowCodeError
(
'param_required'
,
{
param
=>
'id'
});
my
$comment
=
$params
->
{
comment
};
defined
$comment
(
defined
$comment
&&
trim
(
$comment
)
ne
''
)
||
ThrowCodeError
(
'param_required'
,
{
param
=>
'comment'
});
my
$bug
=
Bugzilla::
Bug
->
check
(
$params
->
{
id
});
...
...
@@ -655,6 +656,8 @@ This allows you to add a comment to a bug in Bugzilla.
comment to.
=item C<comment> (string) B<Required> - The comment to append to the bug.
If this is empty or all whitespace, an error will be thrown saying that
you did not set the C<comment> parameter.
=item C<private> (boolean) - If set to true, the comment is private, otherwise
it is assumed to be public.
...
...
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