mirror of
https://github.com/silverstripe/silverstripe-userforms.git
synced 2024-10-22 17:05:42 +02:00
Merge pull request #1174 from kinglozzer/fix-typo
Fix incorrect label on unwritten field groups
This commit is contained in:
commit
3fb760de84
@ -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