Merge pull request #11091 from edwilde/patch-16

Remove unused lines in `findTab()`
This commit is contained in:
Guy Sartorelli 2023-12-15 10:36:45 +13:00 committed by GitHub
commit 3acd6d3147
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 2 deletions

View File

@ -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);
}