summaryrefslogtreecommitdiffstats
path: root/Bugzilla/WebService
diff options
context:
space:
mode:
authorHugo <hugo.seabrook@gmail.com>2012-11-30 20:12:13 +0100
committerDave Lawrence <dlawrence@mozilla.com>2012-11-30 20:12:13 +0100
commit343358abf61db4640f8e20036d13887d2ae7df9f (patch)
tree05939af0573f607b027fbe3ef6650614fb182b07 /Bugzilla/WebService
parent340c67436e575a4c5dcf25add67ac091c133d319 (diff)
downloadbugzilla-343358abf61db4640f8e20036d13887d2ae7df9f.tar.gz
bugzilla-343358abf61db4640f8e20036d13887d2ae7df9f.tar.xz
Bug 813191 - Bug.add_attachment should only return the attachment ID
r=dkl, a=LpSolit
Diffstat (limited to 'Bugzilla/WebService')
-rw-r--r--Bugzilla/WebService/Bug.pm14
1 files changed, 7 insertions, 7 deletions
diff --git a/Bugzilla/WebService/Bug.pm b/Bugzilla/WebService/Bug.pm
index 172353b07..6e352568a 100644
--- a/Bugzilla/WebService/Bug.pm
+++ b/Bugzilla/WebService/Bug.pm
@@ -661,10 +661,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 => \%attachments };
+ return { ids => \@created_ids };
}
sub add_comment {
@@ -2561,7 +2560,7 @@ Bugzilla B<4.4>.
=head2 add_attachment
-B<UNSTABLE>
+B<STABLE>
=over
@@ -2624,9 +2623,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>
@@ -2665,6 +2663,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