mirror of
https://github.com/processwire/processwire.git
synced 2025-08-16 19:54:24 +02:00
Fix issue processwire/processwire-issues#1498
This commit is contained in:
@@ -1156,7 +1156,10 @@ class FieldtypeRepeater extends Fieldtype implements ConfigurableModule {
|
|||||||
|
|
||||||
if($parentID) {
|
if($parentID) {
|
||||||
$parent = $pages->get($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();
|
$repeatersRootPage = $this->getRepeatersRootPage();
|
||||||
|
Reference in New Issue
Block a user