From 4a37cfb6aab523abd648ea7d9078717de9dda243 Mon Sep 17 00:00:00 2001 From: Guy Sartorelli Date: Wed, 2 Oct 2024 16:35:45 +1300 Subject: [PATCH] API Update references to API which has been renamed --- src/FormFields/SessionManagerField.php | 2 +- .../SessionManager/FormFields/SessionManagerField_holder.ss | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 %>