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

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