FIX: fix paginated results in root pages in content editor

This commit is contained in:
Michal Kváček
2017-03-23 00:01:47 +01:00
parent 52f39fda0c
commit 42066d4ae9
6 changed files with 18 additions and 17 deletions
@@ -39,7 +39,8 @@ class ContentOverview extends Controller
// get pages for overview
$handler = $module !== null ? $module->handler : null;
$pages = $this->content->getOverview($handler, [$status]);
$pages = $this->content->getOverview($handler, [$status])
->paginate(setting('paginatedResults', 20));
// get homepage - for checking if homepage is set and available
$homepage = $this->content->getHomepage();