summaryrefslogtreecommitdiffstats
path: root/Bugzilla
diff options
context:
space:
mode:
authorFrédéric Buclin <LpSolit@gmail.com>2012-02-14 23:02:15 +0100
committerFrédéric Buclin <LpSolit@gmail.com>2012-02-14 23:02:15 +0100
commit82a6ee698f52595ce7ec43fabefd222a1f80892a (patch)
tree0afe6686c0edfc6da59fc64563894974ae46eb6f /Bugzilla
parent686f3c40af0d189f86af06cc2db3b5c4080164d6 (diff)
downloadbugzilla-82a6ee698f52595ce7ec43fabefd222a1f80892a.tar.gz
bugzilla-82a6ee698f52595ce7ec43fabefd222a1f80892a.tar.xz
Bug 727240: The POD for Bug.attachments is wrong about the format of the returned data
r=dkl a=LpSolit
Diffstat (limited to 'Bugzilla')
-rw-r--r--Bugzilla/WebService/Bug.pm26
1 files changed, 10 insertions, 16 deletions
diff --git a/Bugzilla/WebService/Bug.pm b/Bugzilla/WebService/Bug.pm
index ea1becc0a..a8c7282ef 100644
--- a/Bugzilla/WebService/Bug.pm
+++ b/Bugzilla/WebService/Bug.pm
@@ -1274,19 +1274,14 @@ value looks like this:
{
bugs => {
- 1345 => {
- attachments => [
- { (attachment) },
- { (attachment) }
- ]
- },
- 9874 => {
- attachments => [
- { (attachment) },
- { (attachment) }
- ]
-
- },
+ 1345 => [
+ { (attachment) },
+ { (attachment) }
+ ],
+ 9874 => [
+ { (attachment) },
+ { (attachment) }
+ ],
},
attachments => {
@@ -1297,9 +1292,8 @@ value looks like this:
The attachments of any bugs that you specified in the C<ids> argument in
input are returned in C<bugs> on output. C<bugs> is a hash that has integer
-bug IDs for keys and contains a single key, C<attachments>. That key points
-to an arrayref that contains attachments as a hash. (Fields for attachments
-are described below.)
+bug IDs for keys and the values are arrayrefs that contain hashes as attachments.
+(Fields for attachments are described below.)
For any attachments that you specified directly in C<attachment_ids>, they
are returned in C<attachments> on output. This is a hash where the attachment