diff options
author | David Lawrence <dkl@mozilla.com> | 2014-04-28 16:19:54 +0200 |
---|---|---|
committer | David Lawrence <dkl@mozilla.com> | 2014-04-28 16:19:54 +0200 |
commit | 96ff287433595d8fed8791af1ed0f6e382b3f4a9 (patch) | |
tree | 241ae7bb6b46f188821fb9b9beb549e2a377394e /Bugzilla/WebService/User.pm | |
parent | 40d80bae28d53965a0abc38ca465c8c986ad0aa3 (diff) | |
download | bugzilla-96ff287433595d8fed8791af1ed0f6e382b3f4a9.tar.gz bugzilla-96ff287433595d8fed8791af1ed0f6e382b3f4a9.tar.xz |
Bug 1000913 - Backport upstream bug 540818 to bmo/4.2 to improve include_fields and exclude_fields to accept _default, _all and _custom keywords
r=glob
Diffstat (limited to 'Bugzilla/WebService/User.pm')
-rw-r--r-- | Bugzilla/WebService/User.pm | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Bugzilla/WebService/User.pm b/Bugzilla/WebService/User.pm index c84d2e07b..988ae3cd5 100644 --- a/Bugzilla/WebService/User.pm +++ b/Bugzilla/WebService/User.pm @@ -179,11 +179,11 @@ sub get { } my $in_group = $self->_filter_users_by_group( \@user_objects, $params); - @users = map {filter $params, { + @users = map { filter $params, { id => $self->type('int', $_->id), real_name => $self->type('string', $_->name), name => $self->type('email', $_->login), - }} @$in_group; + } } @$in_group; return { users => \@users }; } @@ -226,7 +226,7 @@ sub get { my $in_group = $self->_filter_users_by_group(\@user_objects, $params); foreach my $user (@$in_group) { - my $user_info = { + my $user_info = filter $params, { id => $self->type('int', $user->id), real_name => $self->type('string', $user->name), name => $self->type('email', $user->login), @@ -258,7 +258,7 @@ sub get { } } - push(@users, filter($params, $user_info)); + push(@users, $user_info); } Bugzilla::Hook::process('webservice_user_get', |