mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
Merge branch '4.1' into 4
This commit is contained in:
commit
80d15fc4f5
@ -351,7 +351,7 @@ class FieldList extends ArrayList
|
||||
foreach ($fieldName as $field) {
|
||||
$this->removeByName($field, $dataFieldOnly);
|
||||
}
|
||||
return;
|
||||
return $this;
|
||||
}
|
||||
|
||||
$this->flushFieldsCache();
|
||||
|
@ -1454,7 +1454,7 @@ class Form extends ViewableData implements HasRequestHandler
|
||||
$tmpData = &$data[$name];
|
||||
// drill down into the data array looking for the corresponding value
|
||||
foreach ($keys as $arrayKey) {
|
||||
if ($arrayKey !== '') {
|
||||
if ($tmpData && $arrayKey !== '') {
|
||||
$tmpData = &$tmpData[$arrayKey];
|
||||
} else {
|
||||
//empty square brackets means new array
|
||||
|
Loading…
x
Reference in New Issue
Block a user