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