fixing print functionality if passed array data

This commit is contained in:
John Milmine 2015-04-01 21:55:24 +13:00
parent 060c550d75
commit c5006be3d6

View File

@ -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(