diff options
Diffstat (limited to 'Bugzilla/API')
-rw-r--r-- | Bugzilla/API/1_0/Resource/Bug.pm | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Bugzilla/API/1_0/Resource/Bug.pm b/Bugzilla/API/1_0/Resource/Bug.pm index 5dc61e8d1..781ac3176 100644 --- a/Bugzilla/API/1_0/Resource/Bug.pm +++ b/Bugzilla/API/1_0/Resource/Bug.pm @@ -1491,6 +1491,9 @@ sub _bug_to_hash { if (filter_wants $params, 'tags', 'extra') { $item{'tags'} = $bug->tags; } + if (filter_wants $params, 'duplicates', 'extra') { + $item{'duplicates'} = [ map { as_int($_->id) } @{ $bug->duplicates } ]; + } # And now custom fields my @custom_fields = Bugzilla->active_custom_fields; |