]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 928410 - Bug.get should return detail about cc list members similar to assigned_t...
authorDave Lawrence <dlawrence@mozilla.com>
Mon, 28 Oct 2013 14:03:03 +0000 (10:03 -0400)
committerDave Lawrence <dlawrence@mozilla.com>
Mon, 28 Oct 2013 14:03:03 +0000 (10:03 -0400)
r=gerv,a=glob

Bugzilla/WebService/Bug.pm

index 0760503a6ccee838801a4e2d899fbdcf8f743b6e..b24b53dfb4d5bd1aca69e2f6f4c896d9686adf2a 100644 (file)
@@ -1060,6 +1060,7 @@ sub _bug_to_hash {
     if (filter_wants $params, 'cc') {
         my @cc = map { $self->type('email', $_) } @{ $bug->cc };
         $item{'cc'} = \@cc;
+        $item{'cc_detail'} = [ map { $self->_user_to_hash($_, $params, 'cc') } @{ $bug->cc_users } ];
     }
     if (filter_wants $params, 'creator') {
         $item{'creator'} = $self->type('email', $bug->reporter->login);
@@ -2036,6 +2037,11 @@ C<array> of C<int>s. The ids of bugs that are "blocked" by this bug.
 C<array> of C<string>s. The login names of users on the CC list of this
 bug.
 
+=item C<cc_detail>
+
+C<array> of hashes containing detailed user information for each of the cc list
+members. To see the keys included in the user detail hash, see below.
+
 =item C<classification>
 
 C<string> The name of the current classification the bug is in.