mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
Merge pull request #4054 from dnadesign/fixToPrintButton
fixing print functionality if passed arrayData
This commit is contained in:
commit
e0b7bc9cda
@ -204,8 +204,9 @@ class GridFieldPrintButton implements GridField_HTMLProvider, GridField_ActionPr
|
||||
$itemRows->push(new ArrayData(array(
|
||||
"ItemRow" => $itemRow
|
||||
)));
|
||||
|
||||
$item->destroy();
|
||||
if ($item->hasMethod('destroy')) {
|
||||
$item->destroy();
|
||||
}
|
||||
}
|
||||
|
||||
$ret = new ArrayData(array(
|
||||
|
Loading…
x
Reference in New Issue
Block a user