Fix incorrect label on unwritten field groups

This commit is contained in:
Loz Calver 2022-10-27 10:42:43 +01:00
parent 25e64441b8
commit c0fd386ea7

View File

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