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) {
// remove
$fields->removeByName('OnCompleteMessageLabel');
$fields->removeByName('OnCompleteMessage');
$fields->removeByName('Fields');
$fields->removeByName('EmailRecipients');
$fields->removeByName([
'OnCompleteMessageLabel',
'OnCompleteMessage',
'Fields',
'EmailRecipients',
'Submissions'
]);
// define tabs
$fields->findOrMakeTab('Root.FormOptions', _t('SilverStripe\\UserForms\\Model\\UserDefinedForm.CONFIGURATION', 'Configuration'));