1
0
mirror of https://github.com/processwire/processwire.git synced 2025-08-16 03:34:33 +02:00
This commit is contained in:
Ryan Cramer
2022-01-28 11:43:32 -05:00
parent 400399ce60
commit 11b0358290

View File

@@ -1156,7 +1156,10 @@ class FieldtypeRepeater extends Fieldtype implements ConfigurableModule {
if($parentID) {
$parent = $pages->get($parentID);
if($parent->id) return $parent;
if($parent->id) {
if($parent->title != $field->name) $parent->setAndSave('title', $field->name);
return $parent;
}
}
$repeatersRootPage = $this->getRepeatersRootPage();