Skip to content
This repository
Browse code

ENHANCEMENT make gridfield status applied with header filter and head…

…er sort before print
  • Loading branch information...
commit d71b04fa19da204d3e4cf681f7f2d71c7b35e378 1 parent ba02e50
Normann Lou authored April 03, 2012

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

  1. 6  forms/gridfield/GridFieldPrintButton.php
6  forms/gridfield/GridFieldPrintButton.php
@@ -107,6 +107,12 @@ function generatePrintData($gridField) {
107 107
 		}
108 108
 		
109 109
 		$items = $gridField->getList();
  110
+		foreach($gridField->getConfig()->getComponents() as $component){
  111
+			if($component instanceof GridFieldFilterHeader || $component instanceof GridFieldSortableHeader) {
  112
+				$items = $component->getManipulatedData($gridField, $items);
  113
+			}
  114
+		}
  115
+		
110 116
 		$itemRows = new ArrayList();
111 117
 		foreach($items as $item) {
112 118
 			$itemRow = new ArrayList();

0 notes on commit d71b04f

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