Skip to content

Commit d81a709

Browse files
committed
MAGETWO-58395: [Backport] An error occurs while saving configurable product - 2.1
1 parent dc77d0e commit d81a709

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/code/Magento/ConfigurableProduct/Model/Product/VariationHandler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ protected function fillSimpleProductData(
152152
\Magento\Catalog\Model\Product $parentProduct,
153153
$postData
154154
) {
155-
$typeId = isset($postData['weight']) && !empty($postData['weight'])
155+
$typeId = !empty($postData['weight'])
156156
? ProductType::TYPE_SIMPLE
157157
: ProductType::TYPE_VIRTUAL;
158158

0 commit comments

Comments
 (0)