mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Merge pull request #11091 from edwilde/patch-16
Remove unused lines in `findTab()`
This commit is contained in:
commit
3acd6d3147
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user