Skip to content

Commit 896dad6

Browse files
authored
ENGCOM-4812: Fix #20111 - display variables in popup while editing existing email template #22469
2 parents e0c5dfe + 136f4a1 commit 896dad6

File tree

3 files changed

+104
-82
lines changed

3 files changed

+104
-82
lines changed

app/code/Magento/Email/Model/Template.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,7 @@ public function getVariablesOptionArray($withGroup = false)
326326
$optionArray[] = ['value' => '{{' . $value . '}}', 'label' => __('%1', $label)];
327327
}
328328
if ($withGroup) {
329-
$optionArray = ['label' => __('Template Variables'), 'value' => $optionArray];
329+
$optionArray = [['label' => __('Template Variables'), 'value' => $optionArray]];
330330
}
331331
}
332332
return $optionArray;
@@ -418,6 +418,8 @@ public function setOptions(array $options)
418418
}
419419

420420
/**
421+
* Return filter factory.
422+
*
421423
* @return \Magento\Email\Model\Template\FilterFactory
422424
*/
423425
protected function getFilterFactory()

0 commit comments

Comments
 (0)