From 46f62fa34f2ee2d86901598450677bd6c3914e7a Mon Sep 17 00:00:00 2001 From: Ryan Cramer Date: Thu, 27 Jun 2019 12:31:23 -0400 Subject: [PATCH] Fix issue processwire/processwire-issues#867 --- wire/modules/Fieldtype/FieldtypeRepeater/RepeaterPage.php | 1 + 1 file changed, 1 insertion(+) diff --git a/wire/modules/Fieldtype/FieldtypeRepeater/RepeaterPage.php b/wire/modules/Fieldtype/FieldtypeRepeater/RepeaterPage.php index d450505a..986cd270 100644 --- a/wire/modules/Fieldtype/FieldtypeRepeater/RepeaterPage.php +++ b/wire/modules/Fieldtype/FieldtypeRepeater/RepeaterPage.php @@ -203,6 +203,7 @@ class RepeaterPage extends Page { $name = ltrim($name, '-'); if($depth > 0) $name = str_repeat('-', $depth) . $name; if($name !== $_name) $this->name = $name; + $this->depth = $depth; } /**