Skip to content

Commit 85a31d5

Browse files
committed
ACP2E-3410: Configurable product edit form load causes timeout and memory exhaustion
1 parent fa0c0c9 commit 85a31d5

File tree

1 file changed

+6
-3
lines changed
  • app/code/Magento/ConfigurableProduct/view/adminhtml/templates/catalog/product/edit/super

1 file changed

+6
-3
lines changed

app/code/Magento/ConfigurableProduct/view/adminhtml/templates/catalog/product/edit/super/wizard.phtml

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

77
/** @var $block \Magento\ConfigurableProduct\Block\Adminhtml\Product\Edit\Tab\Variations\Config\Matrix */
88
/** @var \Magento\Framework\View\Helper\SecureHtmlRenderer $secureRenderer */
9+
/** @var \Magento\Framework\Escaper $escaper */
910
?>
1011
<?php
1112
/** @var \Magento\Framework\Json\Helper\Data $jsonHelper */
@@ -29,7 +30,7 @@ $currencySymbol = $block->getCurrencySymbol();
2930
"<?= /* @noEscape */ $block->getData('config/form') ?>.<?= /* @noEscape */ $block->getModal() ?>": {
3031
"component": "Magento_ConfigurableProduct/js/components/modal-configurable",
3132
"options": {"type": "slide",
32-
"title": "<?= $block->escapeHtml(__('Create Product Configurations')) ?>"},
33+
"title": "<?= $escaper->escapeHtml(__('Create Product Configurations')) ?>"},
3334
"formName": "<?= /* @noEscape */ $block->getForm() ?>",
3435
"isTemplate": false,
3536
"stepWizard": "<?= /* @noEscape */ $block->getData('config/nameStepWizard') ?>",
@@ -55,8 +56,10 @@ $currencySymbol = $block->getCurrencySymbol();
5556
?>.configurable_attribute_set_handler_modal",
5657
"wizardModalButtonName": "<?= /* @noEscape */ $block->getForm()
5758
?>.configurable.configurable_products_button_set.create_configurable_products_button",
58-
"wizardModalButtonTitle": "<?= $block->escapeHtml(__('Edit Configurations')) ?>",
59-
"productAttributes":<?=/* @noEscape */ $jsonHelper->jsonEncode($block->getProductAttributes())?>,
59+
"wizardModalButtonTitle": "<?= $escaper->escapeHtml(__('Edit Configurations')) ?>",
60+
"productAttributes":<?=/* @noEscape */ $jsonHelper->jsonEncode(
61+
$block->getProductAttributes()
62+
)?>,
6063
"productUrl": "<?= /* @noEscape */ $block->getUrl('catalog/product/edit', ['id' => '%id%']) ?>",
6164
"variations": <?= /* @noEscape */ $jsonHelper->jsonEncode($block->getProductMatrix()) ?>,
6265
"currencySymbol": "<?= /* @noEscape */ $currencySymbol ?>",

0 commit comments

Comments
 (0)