Merge pull request #7930 from creative-commoners/pulls/4.1/return-self

FIX Ensure consistent return type for FieldList::removeByName
This commit is contained in:
Daniel Hensby 2018-03-14 14:21:47 +00:00 committed by GitHub
commit c41ebd3279
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -351,7 +351,7 @@ class FieldList extends ArrayList
foreach ($fieldName as $field) {
$this->removeByName($field, $dataFieldOnly);
}
return;
return $this;
}
$this->flushFieldsCache();