ENHANCEMENT make gridfield status applied with header filter and header sort before export

This commit is contained in:
Normann Lou 2012-04-03 16:48:49 +12:00
parent cebe2fc093
commit 00b904b01c

View File

@ -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) {