Browse files

ENHANCEMENT make gridfield status applied with header filter and head…

…er sort before export
  • Loading branch information...
1 parent cebe2fc commit 00b904b01ccd914eac8925daa22e479596bf65b2 @normann normann committed Apr 3, 2012
Showing with 5 additions and 0 deletions.
  1. +5 −0 forms/gridfield/GridFieldExportButton.php
View
5 forms/gridfield/GridFieldExportButton.php
@@ -110,6 +110,11 @@ function generateExportFileData($gridField) {
}
$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) {

0 comments on commit 00b904b

Please sign in to comment.