Skip to content

Commit

Permalink
Merge branch '4.2/in-operator-for-a-large-list-in-report' into 4.2-trunk
Browse files Browse the repository at this point in the history
  • Loading branch information
alexmv committed Mar 18, 2015
2 parents d7a6f02 + 44c092a commit 68411e1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/RT/Report/Tickets.pm
Expand Up @@ -487,6 +487,10 @@ sub SetupGroupings {
# tickets, with no joins. We then mark it as having been ACL'd,
# since it was by dint of being in the search results above
$self->CleanSlate;
while ( @match > 1000 ) {
my @batch = splice( @match, 0, 1000 );
$self->Limit( FIELD => 'Id', OPERATOR => 'IN', VALUE => \@batch );
}
$self->Limit( FIELD => 'Id', OPERATOR => 'IN', VALUE => \@match );
$self->{'_sql_current_user_can_see_applied'} = 1
}
Expand Down

0 comments on commit 68411e1

Please sign in to comment.