From 153e2383e6e33f5ab439bfabc5faa9ee6c0f2725 Mon Sep 17 00:00:00 2001 From: Matt Clegg Date: Sun, 10 May 2020 08:01:10 +0545 Subject: [PATCH] DOCS: Minor typo --- src/Forms/FieldList.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/Forms/FieldList.php b/src/Forms/FieldList.php index b915ba994..6d96dfc11 100644 --- a/src/Forms/FieldList.php +++ b/src/Forms/FieldList.php @@ -320,9 +320,8 @@ class FieldList extends ArrayList $this->flushFieldsCache(); // Find the tab - $tab = $this->findTab($tabName); - if ($tab) { - // Add the fields to the end of this set + if ($tab = $this->findTab($tabName)) { + // Remove the fields from this set foreach ($fields as $field) { $tab->removeByName($field); }