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