From c0fd386ea7f836ce062681297ef0317dfa33d6af Mon Sep 17 00:00:00 2001 From: Loz Calver Date: Thu, 27 Oct 2022 10:42:43 +0100 Subject: [PATCH] Fix incorrect label on unwritten field groups --- code/Model/EditableFormField/EditableFieldGroupEnd.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/code/Model/EditableFormField/EditableFieldGroupEnd.php b/code/Model/EditableFormField/EditableFieldGroupEnd.php index 161fd20..9a214e0 100644 --- a/code/Model/EditableFormField/EditableFieldGroupEnd.php +++ b/code/Model/EditableFormField/EditableFieldGroupEnd.php @@ -5,7 +5,6 @@ namespace SilverStripe\UserForms\Model\EditableFormField; use SilverStripe\Forms\FieldList; use SilverStripe\Forms\HiddenField; use SilverStripe\Forms\LabelField; -use SilverStripe\Security\Group; use SilverStripe\UserForms\Model\EditableFormField; /** @@ -44,7 +43,7 @@ class EditableFieldGroupEnd extends EditableFormField __CLASS__.'.FIELD_GROUP_END', '{group} end', [ - 'group' => ($group && $group->exists()) ? $group->CMSTitle : Group::class + 'group' => ($group && $group->exists()) ? $group->CMSTitle : 'Group' ] ); }