mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Merge pull request #8760 from creative-commoners/pulls/4.0/print-gridfield-template
FIX GridFieldPrintButton no longer assumes that children of GridField would implement their own print template
This commit is contained in:
commit
5f69063d4f
@ -133,7 +133,10 @@ class GridFieldPrintButton implements GridField_HTMLProvider, GridField_ActionPr
|
||||
$this->extend('updatePrintData', $data);
|
||||
|
||||
if ($data) {
|
||||
return $data->renderWith(get_class($gridField) . "_print");
|
||||
return $data->renderWith([
|
||||
get_class($gridField) . '_print',
|
||||
GridField::class . '_print',
|
||||
]);
|
||||
}
|
||||
|
||||
return null;
|
||||
|
Loading…
Reference in New Issue
Block a user