mirror of
https://gitee.com/jmix/cuba.git
synced 2024-12-04 12:17:41 +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
|
// to ensure correct paging
|
||||||
|
|
||||||
int requestedMax = context.getQuery().getMaxResults();
|
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 setSize = list.size() + requestedFirst;
|
||||||
int factor = list.size() / set.size() * 2;
|
int factor = list.size() / set.size() * 2;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user