Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

ENHANCEMENT make gridfield status applied with header filter and head…

…er sort before export
  • Loading branch information...
commit 00b904b01ccd914eac8925daa22e479596bf65b2 1 parent cebe2fc
Normann Lou normann authored
Showing with 5 additions and 0 deletions.
  1. +5 −0 forms/gridfield/GridFieldExportButton.php
5 forms/gridfield/GridFieldExportButton.php
View
@@ -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) {
Please sign in to comment.
Something went wrong with that request. Please try again.