diff --git a/src/Forms/FieldList.php b/src/Forms/FieldList.php index f84b39135..bdaabe384 100644 --- a/src/Forms/FieldList.php +++ b/src/Forms/FieldList.php @@ -395,12 +395,10 @@ class FieldList extends ArrayList public function findTab($tabName) { $parts = explode('.', $tabName ?? ''); - $last_idx = count($parts ?? []) - 1; $currentPointer = $this; foreach ($parts as $k => $part) { - $parentPointer = $currentPointer; /** @var FormField $currentPointer */ $currentPointer = $currentPointer->fieldByName($part); }