diff --git a/Model/Sync.php b/Model/Sync.php index 3db29fb..87bd569 100644 --- a/Model/Sync.php +++ b/Model/Sync.php @@ -1589,17 +1589,19 @@ private function _syncProductQuestions($product, $productId, $args) $values = $option->getValuesCollection(); foreach ($values as $value) { - $valueData = $this->_syncProductQuestionValue($value); + if($value) { + $valueData = $this->_syncProductQuestionValue($value); - $insertProductAnswerSQL->execute( - [ - $optionData['id'], - $valueData['name'], - $valueData['pricemod'], - $valueData['skumod'], - $valueData['sort'] - ] - ); + $insertProductAnswerSQL->execute( + [ + $optionData['id'], + $valueData['name'], + $valueData['pricemod'], + $valueData['skumod'], + $valueData['sort'] + ] + ); + } } } } diff --git a/composer.json b/composer.json index 8a66ce1..d459d0c 100644 --- a/composer.json +++ b/composer.json @@ -2,7 +2,7 @@ "name" : "codisto/codisto-connect", "description" : "Codisto LINQ Magento 2 Extension", "type" : "magento2-module", - "version" : "1.91.42", + "version" : "1.91.43", "license" : [ "OSL-3.0" ], diff --git a/etc/module.xml b/etc/module.xml index 048f543..0c0083a 100644 --- a/etc/module.xml +++ b/etc/module.xml @@ -22,6 +22,6 @@ --> - +