File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
app/code/Magento/CatalogImportExport/Model/Import/Product Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -1236,7 +1236,13 @@ protected function _importData()
1236
1236
$ multiRowData = $ this ->_getMultiRowFormat ($ rowData );
1237
1237
if (!empty ($ rowData [self ::COLUMN_SKU ]) && isset ($ this ->_productsSkuToId [$ rowData [self ::COLUMN_SKU ]])) {
1238
1238
$ this ->_rowProductId = $ this ->_productsSkuToId [$ rowData [self ::COLUMN_SKU ]];
1239
- if (array_key_exists ('custom_options ' , $ rowData ) && trim ($ rowData ['custom_options ' ]) === '' ) {
1239
+ if (
1240
+ array_key_exists ('custom_options ' , $ rowData )
1241
+ && (
1242
+ trim ($ rowData ['custom_options ' ]) === ''
1243
+ || trim ($ rowData ['custom_options ' ]) === $ this ->_productEntity ->getEmptyAttributeValueConstant ()
1244
+ )
1245
+ ) {
1240
1246
$ optionsToRemove [] = $ this ->_rowProductId ;
1241
1247
}
1242
1248
}
You can’t perform that action at this time.
0 commit comments