mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
Merge pull request #3922 from dnadesign/fixToGridExportField
checking for destroy
This commit is contained in:
commit
86db15add2
@ -155,8 +155,10 @@ class GridFieldExportButton implements GridField_HTMLProvider, GridField_ActionP
|
|||||||
$fileData .= "\n";
|
$fileData .= "\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ($item->hasMethod('destroy')) {
|
||||||
$item->destroy();
|
$item->destroy();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return $fileData;
|
return $fileData;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user