Skip to content
This repository
Browse code

ENHANCEMENT make gridfield status applied with header filter and head…

…er sort before export
  • Loading branch information...
commit 00b904b01ccd914eac8925daa22e479596bf65b2 1 parent cebe2fc
Normann Lou authored April 03, 2012

Showing 1 changed file with 5 additions and 0 deletions. Show diff stats Hide diff stats

  1. 5  forms/gridfield/GridFieldExportButton.php
5  forms/gridfield/GridFieldExportButton.php
@@ -110,6 +110,11 @@ function generateExportFileData($gridField) {
110 110
 		}
111 111
 
112 112
 		$items = $gridField->getList();
  113
+		foreach($gridField->getConfig()->getComponents() as $component){
  114
+			if($component instanceof GridFieldFilterHeader || $component instanceof GridFieldSortableHeader) {
  115
+				$items = $component->getManipulatedData($gridField, $items);
  116
+			}
  117
+		}
113 118
 		foreach($items as $item) {
114 119
 			$columnData = array();
115 120
 			foreach($csvColumns as $columnSource => $columnHeader) {

0 notes on commit 00b904b

Please sign in to comment.
Something went wrong with that request. Please try again.