mirror of
https://github.com/processwire/processwire.git
synced 2025-08-12 01:34:31 +02:00
Fix issue processwire/processwire-issues#1366
This commit is contained in:
@@ -608,6 +608,7 @@ class PagesLoader extends Wire {
|
||||
/** @var PageArray $pageArray */
|
||||
$pageArray = $rows['pageArray'];
|
||||
$pageArray->setTrackChanges(false);
|
||||
$paginationTotal = $pageArray->getTotal();
|
||||
unset($rows['pageArray']);
|
||||
|
||||
foreach($rows as $row) {
|
||||
@@ -684,6 +685,7 @@ class PagesLoader extends Wire {
|
||||
if($useCache) $this->pages->cache($page);
|
||||
}
|
||||
|
||||
$pageArray->setTotal($paginationTotal);
|
||||
$pageArray->resetTrackChanges(true);
|
||||
|
||||
if($useCache) {
|
||||
|
Reference in New Issue
Block a user