mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
Merge pull request #258 from halkyon/doc_changes
MINOR Fix reference in docs to class that doesn't exist (GridFieldExportButton)
This commit is contained in:
commit
fd649a418d
@ -176,7 +176,7 @@ To customize the exported columns, override the edit form implementation in your
|
||||
$form = parent::getEditForm($id);
|
||||
if($this->modelClass == 'Product') {
|
||||
$grid = $form->Fields()->fieldByName('Product');
|
||||
$grid->getConfig()->getComponentByType('GridFieldExporter')
|
||||
$grid->getConfig()->getComponentByType('GridFieldExportButton')
|
||||
->setExportColumns(array(
|
||||
// Excludes 'ProductCode' from the export
|
||||
'Name' => 'Name',
|
||||
|
Loading…
x
Reference in New Issue
Block a user