Skip to content

Commit

Permalink
v1.15.2: Fixed import error when the CSV has multiple CLD video URLs
Browse files Browse the repository at this point in the history
  • Loading branch information
pini-girit committed Jul 8, 2021
1 parent ec7b515 commit ea9e82e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Plugin/CatalogImportExport/Model/Import/Uploader.php
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,7 @@ public function aroundMove(\Magento\CatalogImportExport\Model\Import\Uploader $u
if ($this->parsedRemoteFileUrl['type'] === 'video') {
$cloudinaryVideosImportMap = $this->coreRegistry->registry('cloudinary_videos_import_map') ?: [];
$cloudinaryVideosImportMap["{$result['file']}"] = $this->parsedRemoteFileUrl["orig_url"];
$this->coreRegistry->unregister('cloudinary_videos_import_map');
$this->coreRegistry->register('cloudinary_videos_import_map', $cloudinaryVideosImportMap);
}
}
Expand Down

0 comments on commit ea9e82e

Please sign in to comment.