mirror of
https://github.com/silverstripe/silverstripe-userforms.git
synced 2024-10-22 17:05:42 +02:00
Fix incorrect label on unwritten field groups
This commit is contained in:
parent
25e64441b8
commit
c0fd386ea7
@ -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'
|
||||
]
|
||||
);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user