Skip to content

Commit 922570c

Browse files
author
Yurii Hryhoriev
committed
MAGETWO-52042: Saving swatch option cause errors
1 parent 925c1fb commit 922570c

File tree

2 files changed

+2
-7
lines changed
  • app/code/Magento/ConfigurableProduct

2 files changed

+2
-7
lines changed

app/code/Magento/ConfigurableProduct/Controller/Adminhtml/Product/AddAttribute.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,10 @@ public function __construct(
3434
*/
3535
public function execute()
3636
{
37-
$this->_view->loadLayout('popup');
3837
$this->productBuilder->build($this->getRequest());
3938
$attributeBlock = $this->_view->getLayout()->createBlock(
4039
'Magento\ConfigurableProduct\Block\Adminhtml\Product\Attribute\NewAttribute\Product\Created'
4140
);
42-
$this->_addContent($attributeBlock);
43-
$this->_view->renderLayout();
41+
$this->getResponse()->setBody($attributeBlock->toHtml());
4442
}
4543
}

app/code/Magento/ConfigurableProduct/view/adminhtml/templates/catalog/product/attribute/new/created.phtml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,4 @@
1818
$('#create_new_attribute').modal('closeModal');
1919

2020
})(window.parent.jQuery);
21-
</script>
22-
<div class="a-center">
23-
<?php echo $block->getCloseButtonHtml() ?>
24-
</div>
21+
</script>

0 commit comments

Comments
 (0)