Skip to content

Commit 2288eae

Browse files
author
Roman Lytvynenko
committed
MC-33700: TransportBuilder unable to send emails of Content-Type "text/plain"
1 parent 9bc7b5e commit 2288eae

File tree

1 file changed

+7
-5
lines changed
  • app/code/Magento/Email/view/adminhtml/templates/template

1 file changed

+7
-5
lines changed

app/code/Magento/Email/view/adminhtml/templates/template/edit.phtml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,11 @@
66

77
use Magento\Framework\App\TemplateTypesInterface;
88

9+
// phpcs:disable Magento2.Files.LineLength
10+
911
/** @var $block \Magento\Email\Block\Adminhtml\Template\Edit */
1012
?>
11-
<?php if (!$block->getEditMode()) : ?>
13+
<?php if (!$block->getEditMode()): ?>
1214
<form action="<?= $block->escapeUrl($block->getLoadUrl()) ?>" method="post" id="email_template_load_form">
1315
<?= $block->getBlockHtml('formkey') ?>
1416
<fieldset class="admin__fieldset form-inline">
@@ -17,14 +19,14 @@ use Magento\Framework\App\TemplateTypesInterface;
1719
<label class="admin__field-label" for="template_select"><span><?= $block->escapeHtml(__('Template')) ?></span></label>
1820
<div class="admin__field-control">
1921
<select id="template_select" name="code" class="admin__control-select required-entry">
20-
<?php foreach ($block->getTemplateOptions() as $group => $options) : ?>
21-
<?php if ($group) : ?>
22+
<?php foreach ($block->getTemplateOptions() as $group => $options): ?>
23+
<?php if ($group): ?>
2224
<optgroup label="<?= $block->escapeHtmlAttr($group) ?>">
2325
<?php endif; ?>
24-
<?php foreach ($options as $option) : ?>
26+
<?php foreach ($options as $option): ?>
2527
<option value="<?= $block->escapeHtmlAttr($option['value']) ?>"<?= /* @noEscape */ $block->getOrigTemplateCode() == $option['value'] ? ' selected="selected"' : '' ?>><?= $block->escapeHtml($option['label']) ?></option>
2628
<?php endforeach; ?>
27-
<?php if ($group) : ?>
29+
<?php if ($group): ?>
2830
</optgroup>
2931
<?php endif; ?>
3032
<?php endforeach; ?>

0 commit comments

Comments
 (0)