Skip to content

Commit cef5008

Browse files
authored
Merge pull request #4 from b13/bugfix/add-addtional-default-value-check
[BUGFIX] Add addtional check for [Empty] value
2 parents 8c1708a + 1cbfd42 commit cef5008

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

Classes/Domain/Finisher/EmailTemplateFinisher.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ class EmailTemplateFinisher extends EmailFinisher
1010
{
1111
protected function executeInternal(): void
1212
{
13-
if (!empty($this->options['emailTemplate'])) {
13+
// For v10 compatibility reasons we check for [Empty] value
14+
if (!empty($this->options['emailTemplate']) && $this->options['emailTemplate'] !== '[Empty]') {
1415
$this->setOption('templateName', $this->options['emailTemplate']);
1516
}
1617
parent::executeInternal();

Configuration/Yaml/FormSetup.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,9 @@
3636
items:
3737
0:
3838
- "Default"
39-
- ""
39+
# The default value is required for v10, otherwise this will show up as "INVALID VALUE"
40+
# can be set to "" (empty string) once we support v11 and up only.
41+
- "[Empty]"
4042
TYPO3:
4143
CMS:
4244
Form:

0 commit comments

Comments
 (0)