mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00: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(
|
$itemRows->push(new ArrayData(array(
|
||||||
"ItemRow" => $itemRow
|
"ItemRow" => $itemRow
|
||||||
)));
|
)));
|
||||||
|
if ($item->hasMethod('destroy')) {
|
||||||
$item->destroy();
|
$item->destroy();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$ret = new ArrayData(array(
|
$ret = new ArrayData(array(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user