mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
fixing print functionality if passed array data
This commit is contained in:
parent
060c550d75
commit
c5006be3d6
@ -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…
Reference in New Issue
Block a user