File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed
app/code/Magento/CatalogImportExport/Model/Import Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -1317,16 +1317,13 @@ protected function getExistingImages($images)
1317
1317
if (!$ productMediaGalleryTableName ) {
1318
1318
$ productMediaGalleryTableName = $ resource ->getTable ('catalog_product_entity_media_gallery ' );
1319
1319
}
1320
- $ linkField = $ this ->metadataPool
1321
- ->getMetadata (\Magento \Catalog \Api \Data \ProductInterface::class)
1322
- ->getLinkField ();
1323
1320
$ select = $ this ->_connection ->select ()->from (
1324
1321
['mg ' => $ resource ->getTable ('catalog_product_entity_media_gallery ' )],
1325
1322
['value ' => 'mg.value ' ]
1326
1323
)->joinLeft (
1327
1324
['mgvte ' => $ resource ->getTable ('catalog_product_entity_media_gallery_value_to_entity ' )],
1328
1325
'(mg.value_id = mgvte.value_id) ' ,
1329
- [$ linkField => 'mgvte. ' . $ linkField ]
1326
+ [' entity_id ' => 'mgvte.entity_id ' ]
1330
1327
)->where (
1331
1328
'mg.value IN(?) ' ,
1332
1329
$ images
@@ -2391,7 +2388,7 @@ protected function checkUrlKeyDuplicates()
2391
2388
->where ('store_id IN (?) ' , $ storeId )
2392
2389
->where ('cpe.sku not in (?) ' , array_values ($ urlKeys ))
2393
2390
);
2394
- foreach ($ urlKeyDuplicates as $ urlKey => $ entityData ) {
2391
+ foreach ($ urlKeyDuplicates as $ entityData ) {
2395
2392
$ rowNum = $ this ->rowNumbers [$ entityData ['store_id ' ]][$ entityData ['request_path ' ]];
2396
2393
$ this ->addRowError (ValidatorInterface::ERROR_DUPLICATE_URL_KEY , $ rowNum );
2397
2394
}
You can’t perform that action at this time.
0 commit comments