From: Frédéric Buclin Date: Tue, 14 Feb 2012 22:05:41 +0000 (+0100) Subject: Bug 727240: The POD for Bug.attachments is wrong about the format of the returned... X-Git-Tag: bugzilla-3.6.9~8 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6abd21f520247dc46584bdca2d7b9e99eef42cf3;p=thirdparty%2Fbugzilla.git Bug 727240: The POD for Bug.attachments is wrong about the format of the returned data r=dkl a=LpSolit --- diff --git a/Bugzilla/WebService/Bug.pm b/Bugzilla/WebService/Bug.pm index 3a13240071..2b2361f336 100644 --- a/Bugzilla/WebService/Bug.pm +++ b/Bugzilla/WebService/Bug.pm @@ -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 argument in input are returned in C on output. C is a hash that has integer -bug IDs for keys and contains a single key, C. 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, they are returned in C on output. This is a hash where the attachment