diff options
author | dklawren <dklawren@users.noreply.github.com> | 2018-08-03 16:19:13 +0200 |
---|---|---|
committer | Dylan William Hardison <dylan@hardison.net> | 2018-08-03 16:19:13 +0200 |
commit | c6e8f4af28c109f5eec006ee6ff0eaefeb1ae354 (patch) | |
tree | 5a496fc6d6eb23f6dee0c3905a673c319349a26b | |
parent | bb148ee463b034117e4e695d61cab44f61388ce9 (diff) | |
download | bugzilla-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
-rw-r--r-- | extensions/PhabBugz/lib/User.pm | 6 |
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); } } |