mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
FIX: The method 'name' does not exist on 'Form'
This commit is contained in:
parent
5b1c8771c4
commit
5637431a3f
@ -147,10 +147,8 @@ class GridFieldPrintButton implements GridField_HTMLProvider, GridField_ActionPr
|
||||
} else {
|
||||
if ($currentController->Title) {
|
||||
$title = $currentController->Title;
|
||||
} else {
|
||||
if($form->Name()){
|
||||
$title = $form->Name();
|
||||
}
|
||||
} elseif ($form->getName()) {
|
||||
$title = $form->getName();
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user