File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
app/code/Magento/ConfigurableProduct/Model/Product Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -203,7 +203,9 @@ protected function fillSimpleProductData(
203
203
$ postData ['stock_data ' ] = array_diff_key ((array )$ parentProduct ->getStockData (), array_flip ($ keysFilter ));
204
204
if (!isset ($ postData ['stock_data ' ]['is_in_stock ' ])) {
205
205
$ stockStatus = $ parentProduct ->getQuantityAndStockStatus ();
206
- $ postData ['stock_data ' ]['is_in_stock ' ] = $ stockStatus ['is_in_stock ' ];
206
+ if (isset ($ stockStatus ['is_in_stock ' ])) {
207
+ $ postData ['stock_data ' ]['is_in_stock ' ] = $ stockStatus ['is_in_stock ' ];
208
+ }
207
209
}
208
210
$ postData = $ this ->processMediaGallery ($ product , $ postData );
209
211
$ postData ['status ' ] = isset ($ postData ['status ' ])
@@ -262,6 +264,8 @@ public function duplicateImagesForVariations($productsData)
262
264
}
263
265
264
266
/**
267
+ * Process media gallery for product
268
+ *
265
269
* @param \Magento\Catalog\Model\Product $product
266
270
* @param array $productData
267
271
*
You can’t perform that action at this time.
0 commit comments