1
0
Fork 0

fix internal issue #2957 (#6816)

This commit is contained in:
Heiko 2018-10-11 10:55:39 +02:00 committed by Jan
parent 93ab88edc4
commit 9128b51a2a
2 changed files with 12 additions and 2 deletions

View File

@ -1,6 +1,9 @@
v3.3.18 (XXXX-XX-XX)
--------------------
* fix internal issue #2957: the Web UI was not able to display more than 1000
documents, even when it was set to a higher amount.
* fix internal issue #2785: web ui's sort dialog sometimes got rendered, even
if it should not.

View File

@ -183,10 +183,16 @@
var bindVars;
var tmp;
var queryObj;
var pageSize = this.getPageSize();
if (pageSize === 'all') {
pageSize = this.MAX_SORT + 38000; // will result in 50k docs
}
bindVars = {
'@collection': this.collectionID,
'offset': this.getOffset(),
'count': this.getPageSize()
'count': pageSize
};
// fetch just the first 25 attributes of the document
@ -215,7 +221,8 @@
queryObj = {
query: query,
bindVars: bindVars
bindVars: bindVars,
batchSize: pageSize
};
if (this.filters.length > 0) {