Skip to content

Commit a815a3a

Browse files
authored
MAGETWO-66662: Fix for "Stock Status" field not disappearing in admin when "Manage Stock" = No #7664
2 parents 1b055c4 + 8b3a1c4 commit a815a3a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

app/code/Magento/CatalogInventory/Ui/DataProvider/Product/Form/Modifier/AdvancedInventory.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,9 @@ private function prepareMeta()
174174
'value' => '1',
175175
'dataScope' => $fieldCode . '.is_in_stock',
176176
'scopeLabel' => '[GLOBAL]',
177+
'imports' => [
178+
'visible' => '${$.provider}:data.product.stock_data.manage_stock',
179+
],
177180
]
178181
);
179182
$this->meta = $this->arrayManager->merge(

0 commit comments

Comments
 (0)