Skip to content

Commit

Permalink
Merge pull request #11091 from edwilde/patch-16
Browse files Browse the repository at this point in the history
Remove unused lines in `findTab()`
  • Loading branch information
GuySartorelli authored Dec 14, 2023
2 parents c903207 + b6c646f commit 3acd6d3
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/Forms/FieldList.php
Original file line number Diff line number Diff line change
Expand Up @@ -395,12 +395,10 @@ public function hasTabSet()
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);
}
Expand Down

0 comments on commit 3acd6d3

Please sign in to comment.