FIX Remove incorrect upgrader translation operations and mark to be skipped in future

This commit is contained in:
Robbie Averill 2017-10-26 10:00:02 +13:00
parent 9455cf51f5
commit 317cfdeb6f
2 changed files with 4 additions and 2 deletions

View File

@ -34,11 +34,12 @@ class EditableMemberListField extends EditableFormField
$fields->removeByName('Default');
$fields->removeByName('Validation');
/** @skipUpgrade */
$fields->addFieldToTab(
'Root.Main',
DropdownField::create(
'GroupID',
_t('SilverStripe\\UserForms\\Model\\EditableFormField.GROUP', Group::class),
_t('SilverStripe\\UserForms\\Model\\EditableFormField.GROUP', 'Group'),
Group::get()->map()
)->setEmptyString(' ')
);

View File

@ -109,7 +109,8 @@ class EmailRecipient extends DataObject
{
$fields = parent::summaryFields();
if (isset($fields['EmailAddress'])) {
$fields['EmailAddress'] = _t('SilverStripe\\UserForms\\Model\\UserDefinedForm.EMAILADDRESS', Email::class);
/** @skipUpgrade */
$fields['EmailAddress'] = _t('SilverStripe\\UserForms\\Model\\UserDefinedForm.EMAILADDRESS', 'Email');
}
if (isset($fields['EmailSubject'])) {
$fields['EmailSubject'] = _t('SilverStripe\\UserForms\\Model\\UserDefinedForm.EMAILSUBJECT', 'Subject');