mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
ENHANCEMENT make gridfield status applied with header filter and header sort before print
This commit is contained in:
parent
ba02e500e7
commit
d71b04fa19
@ -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();
|
||||||
|
Loading…
Reference in New Issue
Block a user