From ce2231ce7d908ddec8399fae08ba6ba9111294b5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Antonio=20Cuello=20Principal?= Date: Wed, 19 Feb 2025 13:20:59 +0100 Subject: [PATCH] Fix load more than 50 items Since the view has no pagination, all documents are always loaded. --- Core/Lib/ExtendedController/DocFilesTrait.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Core/Lib/ExtendedController/DocFilesTrait.php b/Core/Lib/ExtendedController/DocFilesTrait.php index 1abe857e8..7b1389f72 100644 --- a/Core/Lib/ExtendedController/DocFilesTrait.php +++ b/Core/Lib/ExtendedController/DocFilesTrait.php @@ -189,7 +189,7 @@ private function loadDataDocFiles($view, $model, $modelid) $where[] = is_numeric($modelid) ? new DataBaseWhere('modelid|modelcode', $modelid) : new DataBaseWhere('modelcode', $modelid); - $view->loadData('', $where, ['creationdate' => 'DESC']); + $view->loadData('', $where, ['creationdate' => 'DESC'], 0, 0); } private function unlinkFileAction(): bool