Merge pull request #1174 from kinglozzer/fix-typo

Fix incorrect label on unwritten field groups
This commit is contained in:
Daniel Hensby 2022-10-27 13:47:14 +01:00 committed by GitHub
commit 3fb760de84
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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