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 print
  • Loading branch information...
commit d71b04fa19da204d3e4cf681f7f2d71c7b35e378 1 parent ba02e50
@normann normann authored
Showing with 6 additions and 0 deletions.
  1. +6 −0 forms/gridfield/GridFieldPrintButton.php
View
6 forms/gridfield/GridFieldPrintButton.php
@@ -107,6 +107,12 @@ function generatePrintData($gridField) {
}
$items = $gridField->getList();
+ foreach($gridField->getConfig()->getComponents() as $component){
+ if($component instanceof GridFieldFilterHeader || $component instanceof GridFieldSortableHeader) {
+ $items = $component->getManipulatedData($gridField, $items);
+ }
+ }
+
$itemRows = new ArrayList();
foreach($items as $item) {
$itemRow = new ArrayList();
Please sign in to comment.
Something went wrong with that request. Please try again.