mirror of
https://gitee.com/jmix/cuba.git
synced 2024-12-03 19:57:36 +08:00
Merge from trunk 10962
This commit is contained in:
parent
6a8cc84068
commit
d967585f9a
@ -306,6 +306,14 @@ public class DataWorkerBean implements DataWorker {
|
||||
// to ensure correct paging
|
||||
|
||||
int requestedMax = context.getQuery().getMaxResults();
|
||||
|
||||
if (requestedMax == 0) {
|
||||
ArrayList result = new ArrayList(set.size());
|
||||
result.addAll(set);
|
||||
// set contains all items if query without paging
|
||||
return result;
|
||||
}
|
||||
|
||||
int setSize = list.size() + requestedFirst;
|
||||
int factor = list.size() / set.size() * 2;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user