mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
BUGFIX Fixed potential PHP notice in TableField
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@71326 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
b34713dffc
commit
f6add2dc75
@ -279,9 +279,9 @@ class TableField extends TableListField {
|
||||
}
|
||||
|
||||
$savedObj = $this->saveData($dataObjects, $this->editExisting);
|
||||
if($savedObj && isset($newFields)) {
|
||||
if($savedObj && isset($newFields) && $newFields) {
|
||||
$savedObj = $this->saveData($newFields,false);
|
||||
} else if(isset($newFields)) {
|
||||
} else if(isset($newFields) && $newFields) {
|
||||
$savedObj = $this->saveData($newFields,false);
|
||||
}
|
||||
$items = $this->sourceItems();
|
||||
|
Loading…
x
Reference in New Issue
Block a user