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 {
|
} else {
|
||||||
if ($currentController->Title) {
|
if ($currentController->Title) {
|
||||||
$title = $currentController->Title;
|
$title = $currentController->Title;
|
||||||
} else {
|
} elseif ($form->getName()) {
|
||||||
if($form->Name()){
|
$title = $form->getName();
|
||||||
$title = $form->Name();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user