Skip to content

Commit

Permalink
Merge pull request #4054 from dnadesign/fixToPrintButton
Browse files Browse the repository at this point in the history
fixing print functionality if passed arrayData
  • Loading branch information
Damian Mooyman committed Apr 21, 2015
2 parents 4fe4d17 + c5006be commit e0b7bc9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions forms/gridfield/GridFieldPrintButton.php
Expand Up @@ -204,8 +204,9 @@ public function generatePrintData(GridField $gridField) {
$itemRows->push(new ArrayData(array(
"ItemRow" => $itemRow
)));

$item->destroy();
if ($item->hasMethod('destroy')) {
$item->destroy();
}
}

$ret = new ArrayData(array(
Expand Down

0 comments on commit e0b7bc9

Please sign in to comment.