Skip to content

Commit 418f582

Browse files
author
Stanislav Idolov
authored
ENGCOM-3136: [forwardport 2.3] fix Fatal Error when save configurable product in Magento 2.2.5 #18082 #18461 #18462
2 parents 8435af3 + 1e65389 commit 418f582

File tree

1 file changed

+1
-1
lines changed
  • app/code/Magento/ConfigurableProduct/Controller/Adminhtml/Product/Initialization/Helper/Plugin

1 file changed

+1
-1
lines changed

app/code/Magento/ConfigurableProduct/Controller/Adminhtml/Product/Initialization/Helper/Plugin/Configurable.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ protected function getVariationMatrix()
158158
$configurableMatrix = json_decode($configurableMatrix, true);
159159

160160
foreach ($configurableMatrix as $item) {
161-
if ($item['newProduct']) {
161+
if (isset($item['newProduct']) && $item['newProduct']) {
162162
$result[$item['variationKey']] = $this->mapData($item);
163163

164164
if (isset($item['qty'])) {

0 commit comments

Comments
 (0)