]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 727240: The POD for Bug.attachments is wrong about the format of the returned...
authorFrédéric Buclin <LpSolit@gmail.com>
Tue, 14 Feb 2012 22:05:41 +0000 (23:05 +0100)
committerFrédéric Buclin <LpSolit@gmail.com>
Tue, 14 Feb 2012 22:05:41 +0000 (23:05 +0100)
r=dkl a=LpSolit

Bugzilla/WebService/Bug.pm

index 3a13240071f4beadd26b23c75f4077cd4bc685d1..2b2361f336aa70a08c41e4b9b3524482d655cfe3 100644 (file)
@@ -988,19 +988,14 @@ value looks like this:
 
  {
      bugs => {
-         1345 => {
-             attachments => [
-                 { (attachment) },
-                 { (attachment) }
-             ]
-         },
-         9874 => {
-             attachments => [
-                 { (attachment) },
-                 { (attachment) }
-             ]
-
-         },
+         1345 => [
+             { (attachment) },
+             { (attachment) }
+         ],
+         9874 => [
+             { (attachment) },
+             { (attachment) }
+         ],
      },
 
      attachments => {
@@ -1011,9 +1006,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