Commit 019d0201 authored by Stefan Galinski's avatar Stefan Galinski 🎮
Browse files

[BUGFIX] Fix the BC introduced by renaming the form finishers, also remove the...

[BUGFIX] Fix the BC introduced by renaming the form finishers, also remove the default mail finishers
parent 827458ab
......@@ -8,6 +8,21 @@ TYPO3:
10: 'EXT:form/Resources/Private/Language/Database.xlf'
20: 'EXT:sg_mail/Resources/Private/Language/Database.xlf'
finishersDefinition:
# TODO deprecated finisher (migration wizard required)
MailToSenderFinisher:
implementationClassName: SGalinski\SgMail\Finisher\Forms\FormsFinisher
formEditor:
iconIdentifier: 't3-form-icon-finisher'
label: 'A Label that seems to be never used...'
predefinedDefaults:
options:
template: ''
mailTo: ''
mailFrom: ''
mailFromName: ''
replyTo: ''
cc: ''
bcc: ''
MailToUserFinisher:
implementationClassName: SGalinski\SgMail\Finisher\Forms\FormsFinisher
formEditor:
......@@ -22,6 +37,21 @@ TYPO3:
replyTo: ''
cc: ''
bcc: ''
# TODO deprecated finisher (migration wizard required)
MailToReceiverFinisher:
implementationClassName: SGalinski\SgMail\Finisher\Forms\FormsFinisher
formEditor:
iconIdentifier: 't3-form-icon-finisher'
label: 'A Label that seems to be never used...'
predefinedDefaults:
options:
template: ''
mailTo: ''
mailFrom: ''
mailFromName: ''
replyTo: ''
cc: ''
bcc: ''
MailToAdminFinisher:
implementationClassName: SGalinski\SgMail\Finisher\Forms\FormsFinisher
formEditor:
......@@ -43,6 +73,12 @@ TYPO3:
900:
# Extend the finisher dropdown in the menu
selectOptions:
20:
value: ''
label: '---'
30:
value: ''
label: '---'
25:
value: 'MailToUserFinisher'
label: 'formEditor.elements.Form.editor.finishers.mailToUser.label'
......@@ -173,6 +209,128 @@ TYPO3:
enableFormelementSelectionButton: true
propertyValidators:
10: 'FormElementIdentifierWithinCurlyBracesInclusive'
# TODO deprecated (migration wizard required)
45:
identifier: 'MailToSenderFinisher'
editors:
__inheritances:
10: 'TYPO3.CMS.Form.mixins.formElementMixins.BaseCollectionEditorsMixin'
100:
label: 'formEditor.elements.Form.editor.finishers.mailToUserOld.label'
120:
identifier: 'template'
templateName: 'Inspector-TextEditor'
label: 'formEditor.elements.Form.editor.finishers.mailToUser.editor.template.label'
propertyPath: 'options.template'
130:
identifier: 'mailTo'
templateName: 'Inspector-TextEditor'
label: 'formEditor.elements.Form.editor.finishers.mailToUser.editor.mailTo.label'
propertyPath: 'options.mailTo'
enableFormelementSelectionButton: true
propertyValidators:
10: 'NotEmpty'
20: 'FormElementIdentifierWithinCurlyBracesInclusive'
140:
identifier: 'mailFrom'
templateName: 'Inspector-TextEditor'
label: 'formEditor.elements.Form.editor.finishers.mailToUser.editor.mailFrom.label'
propertyPath: 'options.mailFrom'
enableFormelementSelectionButton: true
propertyValidators:
10: 'FormElementIdentifierWithinCurlyBracesInclusive'
160:
identifier: 'mailFromName'
templateName: 'Inspector-TextEditor'
label: 'formEditor.elements.Form.editor.finishers.mailToUser.editor.mailFromName.label'
propertyPath: 'options.mailFromName'
enableFormelementSelectionButton: true
propertyValidators:
10: 'FormElementIdentifierWithinCurlyBracesInclusive'
170:
identifier: 'replyTo'
templateName: 'Inspector-TextEditor'
label: 'formEditor.elements.Form.editor.finishers.mailToUser.editor.replyTo.label'
propertyPath: 'options.replyTo'
enableFormelementSelectionButton: true
propertyValidators:
10: 'FormElementIdentifierWithinCurlyBracesInclusive'
180:
identifier: 'cc'
templateName: 'Inspector-TextEditor'
label: 'formEditor.elements.Form.editor.finishers.mailToUser.editor.cc.label'
propertyPath: 'options.cc'
enableFormelementSelectionButton: true
propertyValidators:
10: 'FormElementIdentifierWithinCurlyBracesInclusive'
190:
identifier: 'bcc'
templateName: 'Inspector-TextEditor'
label: 'formEditor.elements.Form.editor.finishers.mailToUser.editor.bcc.label'
propertyPath: 'options.bcc'
enableFormelementSelectionButton: true
propertyValidators:
10: 'FormElementIdentifierWithinCurlyBracesInclusive'
55:
identifier: 'MailToReceiverFinisher'
editors:
__inheritances:
10: 'TYPO3.CMS.Form.mixins.formElementMixins.BaseCollectionEditorsMixin'
100:
label: 'formEditor.elements.Form.editor.finishers.mailToAdminOld.label'
120:
identifier: 'template'
templateName: 'Inspector-TextEditor'
label: 'formEditor.elements.Form.editor.finishers.mailToAdmin.editor.template.label'
propertyPath: 'options.template'
130:
identifier: 'mailTo'
templateName: 'Inspector-TextEditor'
label: 'formEditor.elements.Form.editor.finishers.mailToAdmin.editor.mailTo.label'
propertyPath: 'options.mailTo'
enableFormelementSelectionButton: true
propertyValidators:
10: 'FormElementIdentifierWithinCurlyBracesInclusive'
140:
identifier: 'mailFrom'
templateName: 'Inspector-TextEditor'
label: 'formEditor.elements.Form.editor.finishers.mailToAdmin.editor.mailFrom.label'
propertyPath: 'options.mailFrom'
enableFormelementSelectionButton: true
propertyValidators:
10: 'FormElementIdentifierWithinCurlyBracesInclusive'
150:
identifier: 'mailFromName'
templateName: 'Inspector-TextEditor'
label: 'formEditor.elements.Form.editor.finishers.mailToAdmin.editor.mailFromName.label'
propertyPath: 'options.mailFromName'
enableFormelementSelectionButton: true
propertyValidators:
10: 'FormElementIdentifierWithinCurlyBracesInclusive'
160:
identifier: 'replyTo'
templateName: 'Inspector-TextEditor'
label: 'formEditor.elements.Form.editor.finishers.mailToAdmin.editor.replyTo.label'
propertyPath: 'options.replyTo'
enableFormelementSelectionButton: true
propertyValidators:
10: 'FormElementIdentifierWithinCurlyBracesInclusive'
180:
identifier: 'cc'
templateName: 'Inspector-TextEditor'
label: 'formEditor.elements.Form.editor.finishers.mailToAdmin.editor.cc.label'
propertyPath: 'options.cc'
enableFormelementSelectionButton: true
propertyValidators:
10: 'FormElementIdentifierWithinCurlyBracesInclusive'
190:
identifier: 'bcc'
templateName: 'Inspector-TextEditor'
label: 'formEditor.elements.Form.editor.finishers.mailToAdmin.editor.bcc.label'
propertyPath: 'options.bcc'
enableFormelementSelectionButton: true
propertyValidators:
10: 'FormElementIdentifierWithinCurlyBracesInclusive'
renderingOptions:
translation:
translationFile:
......
......@@ -8,3 +8,8 @@ TYPO3:
implementationClassName: SGalinski\SgMail\Finisher\Forms\FormsFinisher
MailToAdminFinisher:
implementationClassName: SGalinski\SgMail\Finisher\Forms\FormsFinisher
# TODO deprecated (migration wizard required)
MailToSenderFinisher:
implementationClassName: SGalinski\SgMail\Finisher\Forms\FormsFinisher
MailToReceiverFinisher:
implementationClassName: SGalinski\SgMail\Finisher\Forms\FormsFinisher
<?xml version="1.0" encoding="UTF-8"?>
<xliff version="1.0" xmlns:t3="http://typo3.org/schemas/xliff">
<xliff version="1.0">
<file source-language="en" datatype="plaintext" date="2020-02-07T15:18:32Z">
<header />
<body>
<trans-unit id="formEditor.elements.Form.editor.finishers.mailToUser.label" resname="formEditor.elements.Form.editor.finishers.mailToUser.label" xml:space="preserve">
<source>Mail Templates - email to the website user</source>
</trans-unit>
<trans-unit id="formEditor.elements.Form.editor.finishers.mailToUserOld.label" resname="formEditor.elements.Form.editor.finishers.mailToUser.label" xml:space="preserve">
<source>[DEPRECATED] Mail Templates - email to the website user</source>
</trans-unit>
<trans-unit id="formEditor.elements.Form.editor.finishers.mailToAdmin.label" resname="formEditor.elements.Form.editor.finishers.mailToAdmin.label" xml:space="preserve">
<source>Mail Templates - email to the website admin</source>
</trans-unit>
<trans-unit id="formEditor.elements.Form.editor.finishers.mailToAdminOld.label" resname="formEditor.elements.Form.editor.finishers.mailToAdmin.label" xml:space="preserve">
<source>[DEPRECATED] Mail Templates - email to the website admin</source>
</trans-unit>
<trans-unit id="formEditor.elements.Form.editor.finishers.mailToUser.editor.template.label" resname="formEditor.elements.Form.editor.finishers.mailToUser.editor.template.label" xml:space="preserve">
<source>(optional) Unique Template name for the Mail Template module</source>
</trans-unit>
......
<?xml version="1.0" encoding="UTF-8"?>
<xliff version="1.0" xmlns:t3="http://typo3.org/schemas/xliff">
<xliff version="1.0">
<file source-language="en" target-language="de" datatype="plaintext" date="2020-02-07T15:18:32Z">
<header />
<body>
......@@ -7,10 +7,18 @@
<source>Mail Templates - email to the website user</source>
<target state="translated">Mail Templates - E-Mail an den Nutzer der Webseite</target>
</trans-unit>
<trans-unit id="formEditor.elements.Form.editor.finishers.mailToUserOld.label" resname="formEditor.elements.Form.editor.finishers.mailToUser.label" xml:space="preserve">
<source>[DEPRECATED] Mail Templates - email to the website user</source>
<target state="translated">[DEPRECATED] Mail Templates - E-Mail an den Nutzer der Webseite</target>
</trans-unit>
<trans-unit id="formEditor.elements.Form.editor.finishers.mailToAdmin.label" resname="formEditor.elements.Form.editor.finishers.mailToAdmin.label" xml:space="preserve">
<source>Mail Templates - email to the website admin</source>
<target state="translated">Mail Templates - E-Mail an den Admin der Webseite</target>
</trans-unit>
<trans-unit id="formEditor.elements.Form.editor.finishers.mailToAdminOld.label" resname="formEditor.elements.Form.editor.finishers.mailToAdmin.label" xml:space="preserve">
<source>[DEPRECATED] Mail Templates - email to the website admin</source>
<target state="translated">[DEPRECATED] Mail Templates - E-Mail an den Admin der Webseite</target>
</trans-unit>
<trans-unit id="formEditor.elements.Form.editor.finishers.mailToUser.editor.template.label" resname="formEditor.elements.Form.editor.finishers.mailToUser.editor.template.label" xml:space="preserve">
<source>(optional) Unique Template name for the Mail Template module</source>
<target state="translated">(optional) Einzigartiger Template-Name für das Mail-Template-Modul</target>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment