mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
Changed checked for UnsavedRelationList to ManyManyList
This commit is contained in:
parent
fe4b90edc0
commit
d17f424541
@ -460,10 +460,10 @@ class DataObject extends ViewableData implements DataObjectInterface, i18nEntity
|
||||
$source = $sourceObject->getManyManyComponents($manyManyName);
|
||||
$dest = $destinationObject->getManyManyComponents($manyManyName);
|
||||
|
||||
if ($source instanceof UnsavedRelationList) {
|
||||
$extraFieldNames = array();
|
||||
} else {
|
||||
if ($source instanceof ManyManyList) {
|
||||
$extraFieldNames = $source->getExtraFields();
|
||||
} else {
|
||||
$extraFieldNames = array();
|
||||
}
|
||||
|
||||
foreach ($source as $item) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user