summaryrefslogtreecommitdiffstats
path: root/extensions/PhabBugz/lib
diff options
context:
space:
mode:
authordklawren <dklawren@users.noreply.github.com>2018-08-03 16:19:13 +0200
committerDylan William Hardison <dylan@hardison.net>2018-08-03 16:19:13 +0200
commitc6e8f4af28c109f5eec006ee6ff0eaefeb1ae354 (patch)
tree5a496fc6d6eb23f6dee0c3905a673c319349a26b /extensions/PhabBugz/lib
parentbb148ee463b034117e4e695d61cab44f61388ce9 (diff)
downloadbugzilla-c6e8f4af28c109f5eec006ee6ff0eaefeb1ae354.tar.gz
bugzilla-c6e8f4af28c109f5eec006ee6ff0eaefeb1ae354.tar.xz
Bug 1480583 - User->match is not paging properly so all user results are not return if more than 100 users
Diffstat (limited to 'extensions/PhabBugz/lib')
-rw-r--r--extensions/PhabBugz/lib/User.pm6
1 files changed, 3 insertions, 3 deletions
diff --git a/extensions/PhabBugz/lib/User.pm b/extensions/PhabBugz/lib/User.pm
index 1bf1a842d..da573be37 100644
--- a/extensions/PhabBugz/lib/User.pm
+++ b/extensions/PhabBugz/lib/User.pm
@@ -135,9 +135,9 @@ sub match {
my $phab_users = [];
my $result;
do {
- $result = request( 'user.search', $data );
- if ( exists $result->{result}{data} && @{ $result->{result}{data} } ) {
- foreach my $user ( @{ $result->{result}{data} } ) {
+ $result = request( 'user.search', $data )->{result};
+ if ( exists $result->{data} && @{ $result->{data} } ) {
+ foreach my $user ( @{ $result->{data} } ) {
push @$phab_users, $class->new($user);
}
}