bootgrid: prevent NaN pagination values for non-ajax grids when row count is set to all

(cherry picked from commit 401677167f)
This commit is contained in:
Stephan de Wit 2026-05-18 08:49:12 +02:00 committed by Franco Fichtner
parent 2b0799c446
commit 2f8a759182

View file

@ -1439,9 +1439,9 @@ class UIBootgrid {
if (this.options.ajax) {
totalRows = this.paginationTotal;
pageSize = this.curRowCount === true ? this.paginationTotal : this.curRowCount;
}
pageSize = this.curRowCount === true ? this.paginationTotal : this.curRowCount;
end = currentPage * pageSize;
start = (totalRows === 0) ? 0 : ((currentPage - 1) * pageSize) + 1;
end = (totalRows === 0 || end === -1 || end > totalRows) ? totalRows : end;