1
0
mirror of https://github.com/processwire/processwire.git synced 2025-08-07 07:16:51 +02:00
This commit is contained in:
Ryan Cramer
2025-02-06 08:48:36 -05:00
parent 8b5d96f1b6
commit 4a9b904b77

View File

@@ -175,16 +175,17 @@ class RepeaterPageArray extends PageArray {
if(is_null($page)) { if(is_null($page)) {
// no ready item available, get a new one // no ready item available, get a new one
$page = $fieldtype->getBlankRepeaterPage($this->forPage, $this->field); $page = $fieldtype->getBlankRepeaterPage($this->forPage, $this->field);
$page->sort = $this->count();
$this->add($page); $this->add($page);
} else { } else {
$page->sort = $this->count();
$this->trackChange('add'); $this->trackChange('add');
} }
$page->of(false); $page->of(false);
$page->removeStatus(Page::statusUnpublished); $page->removeStatus(Page::statusUnpublished);
$page->removeStatus(Page::statusHidden); $page->removeStatus(Page::statusHidden);
$page->sort = $this->count();
if($of) $this->forPage->of(true); if($of) $this->forPage->of(true);