1
0
mirror of https://github.com/processwire/processwire.git synced 2025-08-12 01:34:31 +02:00
This commit is contained in:
Ryan Cramer
2021-04-19 10:01:40 -04:00
parent 4c50447e61
commit dbfd01a472

View File

@@ -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) {