diff --git a/src/FormFields/SessionManagerField.php b/src/FormFields/SessionManagerField.php index eaaaa9f..ce79255 100644 --- a/src/FormFields/SessionManagerField.php +++ b/src/FormFields/SessionManagerField.php @@ -87,7 +87,7 @@ public function setTitleLinkHref(string $titleLinkHref) return $this; } - public function Field($properties = array()) + public function renderField($properties = array()) { return $this->renderWith(SessionManagerField::class); } diff --git a/templates/SilverStripe/SessionManager/FormFields/SessionManagerField_holder.ss b/templates/SilverStripe/SessionManager/FormFields/SessionManagerField_holder.ss index 999aea1..9de7e35 100644 --- a/templates/SilverStripe/SessionManager/FormFields/SessionManagerField_holder.ss +++ b/templates/SilverStripe/SessionManager/FormFields/SessionManagerField_holder.ss @@ -8,7 +8,7 @@ <% end_if %>
- $Field + $renderField <% if $Message %><% end_if %> <% if $Description %>

$Description

<% end_if %>