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
02f4d9da
Commit
02f4d9da
authored
Nov 30, 2012
by
Hugo
Committed by
Dave Lawrence
Nov 30, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 813191 - Bug.add_attachment should only return the attachment ID
r=dkl, a=LpSolit
parent
58b8c706
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
Bug.pm
Bugzilla/WebService/Bug.pm
+7
-7
No files found.
Bugzilla/WebService/Bug.pm
View file @
02f4d9da
...
...
@@ -659,10 +659,9 @@ sub add_attachment {
$_
->
send_changes
()
foreach
@bugs
;
my
%
attachments
=
map
{
$_
->
id
=>
$self
->
_attachment_to_hash
(
$_
,
$params
)
}
@created
;
my
@created_ids
=
map
{
$_
->
id
}
@created
;
return
{
attachments
=>
\%
attachment
s
};
return
{
ids
=>
\
@created_id
s
};
}
sub
add_comment
{
...
...
@@ -2562,7 +2561,7 @@ Bugzilla B<4.4>.
=head2 add_attachment
B<
UN
STABLE>
B<STABLE>
=over
...
...
@@ -2625,9 +2624,8 @@ Defaults to False if not specified.
=item B<Returns>
A single item C<attachments>, which contains the created
attachments in the same format as the C<attachments> return
value from L</attachments>.
A single item C<ids>, which contains an array of the
attachment id(s) created.
=item B<Errors>
...
...
@@ -2666,6 +2664,8 @@ You set the "data" field to an empty string.
=item The C<is_url> parameter was removed in Bugzilla B<4.2>.
=item The return value has changed in Bugzilla B<4.4>.
=back
=back
...
...
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