From ea9e82ea2bc01870603c69d6a37d25bb91473a86 Mon Sep 17 00:00:00 2001 From: pini-girit Date: Thu, 8 Jul 2021 16:57:59 +0300 Subject: [PATCH] v1.15.2: Fixed import error when the CSV has multiple CLD video URLs --- Plugin/CatalogImportExport/Model/Import/Uploader.php | 1 + 1 file changed, 1 insertion(+) diff --git a/Plugin/CatalogImportExport/Model/Import/Uploader.php b/Plugin/CatalogImportExport/Model/Import/Uploader.php index d1e4a1a..722d32a 100644 --- a/Plugin/CatalogImportExport/Model/Import/Uploader.php +++ b/Plugin/CatalogImportExport/Model/Import/Uploader.php @@ -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); } }