Permalink
Browse files

FIX GridField export and print actions should preserve state.

  • Loading branch information...
wilr committed Mar 4, 2013
1 parent dda6fa6 commit 36d3303e1b123ca8296643ef9e6a235650aac25c
Showing with 2 additions and 1 deletion.
  1. +1 −1 forms/gridfield/GridFieldExportButton.php
  2. +1 −0 forms/gridfield/GridFieldPrintButton.php
@@ -119,7 +119,7 @@ public function generateExportFileData($gridField) {
$fileData .= "\n";
}
- $items = $gridField->getList();
+ $items = $gridField->getManipulatedList();
// @todo should GridFieldComponents change behaviour based on whether others are available in the config?
foreach($gridField->getConfig()->getComponents() as $component){
@@ -118,6 +118,7 @@ public function generatePrintData($gridField) {
}
}
+ $items = $gridField->getManipulatedList();
$itemRows = new ArrayList();
foreach($items as $item) {
$itemRow = new ArrayList();

0 comments on commit 36d3303

Please sign in to comment.