Skip to content

Commit c966fdc

Browse files
author
Oleksandr Gorkun
committed
MC-18685: Remove custom layout updates from admin
1 parent 0347c1d commit c966fdc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/code/Magento/Catalog/Ui/DataProvider/Product/Form/Modifier/LayoutUpdate.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ private function extractLayoutUpdate(ProductInterface $product)
5555
public function modifyData(array $data)
5656
{
5757
$product = $this->locator->getProduct();
58-
if ($oldLayout = $this->extractLayoutUpdate($product)) {
58+
if ($this->extractLayoutUpdate($product)) {
5959
$data[$product->getId()][AbstractModifier::DATA_SOURCE_DEFAULT]['custom_layout_update_file']
6060
= \Magento\Catalog\Model\Product\Attribute\Backend\LayoutUpdate::VALUE_USE_UPDATE_XML;
6161
}

0 commit comments

Comments
 (0)