FIX: The method 'name' does not exist on 'Form'

This commit is contained in:
Elvinas L 2014-12-18 15:00:09 +02:00 committed by Loz Calver
parent 5b1c8771c4
commit 5637431a3f

View File

@ -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();
}
} }
} }