mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
FIX Ensure consistent return type for FieldList::removeByName
This commit is contained in:
parent
856e89998b
commit
a9cc4d4844
@ -351,7 +351,7 @@ class FieldList extends ArrayList
|
||||
foreach ($fieldName as $field) {
|
||||
$this->removeByName($field, $dataFieldOnly);
|
||||
}
|
||||
return;
|
||||
return $this;
|
||||
}
|
||||
|
||||
$this->flushFieldsCache();
|
||||
|
Loading…
Reference in New Issue
Block a user