BUGFIX destroy $item in the scope of where $item is defined for GridFieldPrintButton->generatePrintData.

This commit is contained in:
Normann Lou 2012-04-04 11:29:25 +12:00
parent 2f3949ac6e
commit 95cdfd7903

View File

@ -129,6 +129,7 @@ class GridFieldPrintButton implements GridField_HTMLProvider, GridField_ActionPr
"ItemRow" => $itemRow
)
));
$item->destroy();
}
$ret = new ArrayData(
array(
@ -137,9 +138,6 @@ class GridFieldPrintButton implements GridField_HTMLProvider, GridField_ActionPr
)
);
$item->destroy();
return $ret;
}