ENHANCEMENT make gridfield status applied with header filter and header sort before print

This commit is contained in:
Normann Lou 2012-04-03 17:04:19 +12:00
parent ba02e500e7
commit d71b04fa19

View File

@ -107,6 +107,12 @@ class GridFieldPrintButton implements GridField_HTMLProvider, GridField_ActionPr
} }
$items = $gridField->getList(); $items = $gridField->getList();
foreach($gridField->getConfig()->getComponents() as $component){
if($component instanceof GridFieldFilterHeader || $component instanceof GridFieldSortableHeader) {
$items = $component->getManipulatedData($gridField, $items);
}
}
$itemRows = new ArrayList(); $itemRows = new ArrayList();
foreach($items as $item) { foreach($items as $item) {
$itemRow = new ArrayList(); $itemRow = new ArrayList();