Permalink
Browse files

BUGFIX destroy $item in the scope of where $item is defined for GridF…

…ieldPrintButton->generatePrintData.
  • Loading branch information...
1 parent 2f3949a commit 95cdfd7903f1640b7595ce94a41fc28533329827 @normann normann committed Apr 3, 2012
Showing with 1 addition and 3 deletions.
  1. +1 −3 forms/gridfield/GridFieldPrintButton.php
@@ -129,6 +129,7 @@ function generatePrintData($gridField) {
"ItemRow" => $itemRow
)
));
+ $item->destroy();
}
$ret = new ArrayData(
array(
@@ -137,9 +138,6 @@ function generatePrintData($gridField) {
)
);
-
- $item->destroy();
-
return $ret;
}

0 comments on commit 95cdfd7

Please sign in to comment.