mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
BUGFIX destroy $item in the scope of where $item is defined for GridFieldPrintButton->generatePrintData.
This commit is contained in:
parent
2f3949ac6e
commit
95cdfd7903
@ -129,6 +129,7 @@ class GridFieldPrintButton implements GridField_HTMLProvider, GridField_ActionPr
|
||||
"ItemRow" => $itemRow
|
||||
)
|
||||
));
|
||||
$item->destroy();
|
||||
}
|
||||
$ret = new ArrayData(
|
||||
array(
|
||||
@ -137,9 +138,6 @@ class GridFieldPrintButton implements GridField_HTMLProvider, GridField_ActionPr
|
||||
)
|
||||
);
|
||||
|
||||
|
||||
$item->destroy();
|
||||
|
||||
return $ret;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user