summaryrefslogtreecommitdiffstats
path: root/Bugzilla/WebService/Bug.pm
diff options
context:
space:
mode:
Diffstat (limited to 'Bugzilla/WebService/Bug.pm')
-rw-r--r--Bugzilla/WebService/Bug.pm7
1 files changed, 7 insertions, 0 deletions
diff --git a/Bugzilla/WebService/Bug.pm b/Bugzilla/WebService/Bug.pm
index a1c6b7d99..2279395a1 100644
--- a/Bugzilla/WebService/Bug.pm
+++ b/Bugzilla/WebService/Bug.pm
@@ -1377,6 +1377,9 @@ sub _bug_to_hash {
if (filter_wants $params, 'tags', 'extra') {
$item{'tags'} = $bug->tags;
}
+ if (filter_wants $params, 'duplicates', 'extra') {
+ $item{'duplicates'} = [ map { $self->type('int', $_->id) } @{ $bug->duplicates } ];
+ }
# And now custom fields
my @custom_fields = Bugzilla->active_custom_fields;
@@ -2590,6 +2593,10 @@ C<array> of C<string>s. Each array item is a tag name.
Note that tags are personal to the currently logged in user.
+=item C<duplicates>
+
+C<array> of C<integers>. Each array item is a bug ID that is a duplicate of this bug.
+
=back
=item C<faults> B<EXPERIMENTAL>