1
0
mirror of https://github.com/processwire/processwire.git synced 2025-08-19 04:51:22 +02:00

Fix issue processwire/processwire-issues#716 where $page traversal methods like next() and prev() were not working on RepeaterPage items

This commit is contained in:
Ryan Cramer
2018-10-05 09:48:20 -04:00
parent 5fddd95b43
commit 8e22bee1b5
4 changed files with 80 additions and 14 deletions

View File

@@ -1048,8 +1048,7 @@ class PageTraversal {
$siblings->prepend($page);
}
$siblings = $this->nextAll($page, '', $siblings);
$siblings = $this->nextAllSiblings($page, '', $siblings);
$all = $page->wire('pages')->newPageArray();
$stop = false;
@@ -1100,8 +1099,7 @@ class PageTraversal {
$siblings->add($page);
}
$siblings = $this->prevAll($page, '', $siblings);
$siblings = $this->prevAllSiblings($page, '', $siblings);
$all = $page->wire('pages')->newPageArray();
$stop = false;