Submission tab translatable

This commit is contained in:
Lukas Erni 2023-04-19 15:48:24 +02:00
parent 7677f15fda
commit 0d7f7ed6d0

View File

@ -185,10 +185,13 @@ trait UserForm
$this->beforeUpdateCMSFields(function ($fields) { $this->beforeUpdateCMSFields(function ($fields) {
// remove // remove
$fields->removeByName('OnCompleteMessageLabel'); $fields->removeByName([
$fields->removeByName('OnCompleteMessage'); 'OnCompleteMessageLabel',
$fields->removeByName('Fields'); 'OnCompleteMessage',
$fields->removeByName('EmailRecipients'); 'Fields',
'EmailRecipients',
'Submissions'
]);
// define tabs // define tabs
$fields->findOrMakeTab('Root.FormOptions', _t('SilverStripe\\UserForms\\Model\\UserDefinedForm.CONFIGURATION', 'Configuration')); $fields->findOrMakeTab('Root.FormOptions', _t('SilverStripe\\UserForms\\Model\\UserDefinedForm.CONFIGURATION', 'Configuration'));