From 8ed3adaad5c840f1177f452b8827eaff10d0a14e Mon Sep 17 00:00:00 2001 From: vprokopchuk Date: Fri, 2 Dec 2016 12:01:38 +0100 Subject: [PATCH] Fix for "Stock Status" field not disappearing when "Manage Stock" = No. --- .../DataProvider/Product/Form/Modifier/AdvancedInventory.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/code/Magento/CatalogInventory/Ui/DataProvider/Product/Form/Modifier/AdvancedInventory.php b/app/code/Magento/CatalogInventory/Ui/DataProvider/Product/Form/Modifier/AdvancedInventory.php index 546483a660bd7..967b9bcb8db76 100644 --- a/app/code/Magento/CatalogInventory/Ui/DataProvider/Product/Form/Modifier/AdvancedInventory.php +++ b/app/code/Magento/CatalogInventory/Ui/DataProvider/Product/Form/Modifier/AdvancedInventory.php @@ -174,6 +174,9 @@ private function prepareMeta() 'value' => '1', 'dataScope' => $fieldCode . '.is_in_stock', 'scopeLabel' => '[GLOBAL]', + 'imports' => [ + 'visible' => '${$.provider}:data.product.stock_data.manage_stock', + ], ] ); $this->meta = $this->arrayManager->merge(