Skip to content
This repository
Browse code

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

…ieldPrintButton->generatePrintData.
  • Loading branch information...
commit 95cdfd7903f1640b7595ce94a41fc28533329827 1 parent 2f3949a
Normann Lou authored April 04, 2012
4  forms/gridfield/GridFieldPrintButton.php
@@ -129,6 +129,7 @@ function generatePrintData($gridField) {
129 129
 					"ItemRow" => $itemRow
130 130
 				)
131 131
 			));
  132
+			$item->destroy();
132 133
 		}
133 134
 		$ret = new ArrayData(
134 135
 			array(
@@ -137,9 +138,6 @@ function generatePrintData($gridField) {
137 138
 			)
138 139
 		);
139 140
 		
140  
-		
141  
-		$item->destroy();
142  
-		
143 141
 		return $ret;
144 142
 	}
145 143
 

0 notes on commit 95cdfd7

Please sign in to comment.
Something went wrong with that request. Please try again.