Skip to content

Commit

Permalink
BUGFIX destroy $item in the scope of where $item is defined for GridF…
Browse files Browse the repository at this point in the history
…ieldPrintButton->generatePrintData.
  • Loading branch information
normann committed Apr 3, 2012
1 parent 2f3949a commit 95cdfd7
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions forms/gridfield/GridFieldPrintButton.php
Expand Up @@ -129,6 +129,7 @@ function generatePrintData($gridField) {
"ItemRow" => $itemRow
)
));
$item->destroy();
}
$ret = new ArrayData(
array(
Expand All @@ -137,9 +138,6 @@ function generatePrintData($gridField) {
)
);


$item->destroy();

return $ret;
}

Expand Down

0 comments on commit 95cdfd7

Please sign in to comment.