Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

…ieldPrintButton->generatePrintData.
  • Loading branch information...
commit 95cdfd7903f1640b7595ce94a41fc28533329827 1 parent 2f3949a
@normann normann authored
Showing with 1 addition and 3 deletions.
  1. +1 −3 forms/gridfield/GridFieldPrintButton.php
View
4 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;
}
Please sign in to comment.
Something went wrong with that request. Please try again.