mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
ENHANCEMENT make gridfield status applied with header filter and header sort before export
This commit is contained in:
parent
cebe2fc093
commit
00b904b01c
@ -110,6 +110,11 @@ class GridFieldExportButton implements GridField_HTMLProvider, GridField_ActionP
|
||||
}
|
||||
|
||||
$items = $gridField->getList();
|
||||
foreach($gridField->getConfig()->getComponents() as $component){
|
||||
if($component instanceof GridFieldFilterHeader || $component instanceof GridFieldSortableHeader) {
|
||||
$items = $component->getManipulatedData($gridField, $items);
|
||||
}
|
||||
}
|
||||
foreach($items as $item) {
|
||||
$columnData = array();
|
||||
foreach($csvColumns as $columnSource => $columnHeader) {
|
||||
|
Loading…
Reference in New Issue
Block a user