mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
FIX GridField export and print actions should preserve state.
This commit is contained in:
parent
dda6fa6600
commit
36d3303e1b
@ -119,7 +119,7 @@ class GridFieldExportButton implements GridField_HTMLProvider, GridField_ActionP
|
||||
$fileData .= "\n";
|
||||
}
|
||||
|
||||
$items = $gridField->getList();
|
||||
$items = $gridField->getManipulatedList();
|
||||
|
||||
// @todo should GridFieldComponents change behaviour based on whether others are available in the config?
|
||||
foreach($gridField->getConfig()->getComponents() as $component){
|
||||
|
@ -118,6 +118,7 @@ class GridFieldPrintButton implements GridField_HTMLProvider, GridField_ActionPr
|
||||
}
|
||||
}
|
||||
|
||||
$items = $gridField->getManipulatedList();
|
||||
$itemRows = new ArrayList();
|
||||
foreach($items as $item) {
|
||||
$itemRow = new ArrayList();
|
||||
|
Loading…
x
Reference in New Issue
Block a user