-
Notifications
You must be signed in to change notification settings - Fork 9.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Insert Variable popup missing template variables for new templates #23135
Comments
Hi @roma84. Thank you for your report.
Please make sure that the issue is reproducible on the vanilla Magento instance following Steps to reproduce. To deploy vanilla Magento instance on our environment, please, add a comment to the issue:
For more details, please, review the Magento Contributor Assistant documentation. @roma84 do you confirm that you were able to reproduce the issue on vanilla Magento instance following steps to reproduce?
|
Hi @stoleksiy. Thank you for working on this issue.
|
✅ Confirmed by @stoleksiy |
Hi @shikhamis11. Thank you for working on this issue.
|
✅ Confirmed by @engcom-backlog-nazar Issue Available: @engcom-backlog-nazar, You will be automatically unassigned. Contributors/Maintainers can claim this issue to continue. To reclaim and continue work, reassign the ticket to yourself. |
A possible solution for the issue:
--- a/app/code/Magento/Email/Block/Adminhtml/Template/Edit/Form.php
+++ b/app/code/Magento/Email/Block/Adminhtml/Template/Edit/Form.php
@@ -191,7 +191,7 @@ class Form extends \Magento\Backend\Block\Widget\Form\Generic
}
$template = $this->getEmailTemplate();
if ($template->getId() && ($templateVariables = $template->getVariablesOptionArray(true))) {
- $variables = array_merge_recursive($variables, $templateVariables);
+ $variables = array_merge_recursive($variables, [$templateVariables]);
}
return $variables;
}
|
@roma84 , your changes seems working . you can prepare a pull request with your changes |
Hi @maheshWebkul721. Thank you for working on this issue.
|
…ables for new email templates
…te variables for new templates #23173
After the following PR #22469 was merged into 2.3-develop, you cannot anymore insert template variables in the newly created email templates.
Preconditions (*)
Steps to reproduce (*)
Expected result (*)
Actual result (*)
The text was updated successfully, but these errors were encountered: