mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
checking for destroy
needed if field is passed array data rather than objects.
This commit is contained in:
parent
7c4c30270a
commit
fa9cbb74ce
@ -155,7 +155,9 @@ class GridFieldExportButton implements GridField_HTMLProvider, GridField_ActionP
|
||||
$fileData .= "\n";
|
||||
}
|
||||
|
||||
$item->destroy();
|
||||
if ($item->hasMethod('destroy')) {
|
||||
$item->destroy();
|
||||
}
|
||||
}
|
||||
|
||||
return $fileData;
|
||||
|
Loading…
x
Reference in New Issue
Block a user