diff --git a/src/Forms/FieldList.php b/src/Forms/FieldList.php index 414ecc622..2072a5dca 100644 --- a/src/Forms/FieldList.php +++ b/src/Forms/FieldList.php @@ -351,7 +351,7 @@ class FieldList extends ArrayList foreach ($fieldName as $field) { $this->removeByName($field, $dataFieldOnly); } - return; + return $this; } $this->flushFieldsCache();