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,9 +204,10 @@ class GridFieldPrintButton implements GridField_HTMLProvider, GridField_ActionPr
$itemRows->push(new ArrayData(array(
"ItemRow" => $itemRow
)));
if ($item->hasMethod('destroy')) {
$item->destroy();
}
}
$ret = new ArrayData(array(
"Title" => $this->getTitle($gridField),