diff --git a/Plugin/ImageHelper.php b/Plugin/ImageHelper.php index e28fd14..65ab978 100644 --- a/Plugin/ImageHelper.php +++ b/Plugin/ImageHelper.php @@ -138,10 +138,6 @@ public function aroundGetUrl(CatalogImageHelper $helper, \Closure $originalMetho return $originalMethod(); } - if ($imageBlock->getImageUrl() === 'no_selection') { - return $imageBlock; - } - $imagePath = $this->imageFile ?: $this->product->getData($helper->getType()); $image = $this->imageFactory->build(sprintf('catalog/product%s', $imagePath), $originalMethod); diff --git a/composer.json b/composer.json index 7637dce..f830054 100644 --- a/composer.json +++ b/composer.json @@ -2,10 +2,10 @@ "name": "cloudinary/cloudinary-magento2", "description": "Cloudinary Magento 2 Integration.", "type": "magento2-module", - "version": "1.14.4", + "version": "1.14.6", "license": "MIT", "require": { - "cloudinary/cloudinary_php": "*" + "cloudinary/cloudinary_php": "^1.20.0" }, "autoload": { "files": [ diff --git a/etc/csp_whitelist.xml b/etc/csp_whitelist.xml index d282ecb..3eeed4f 100644 --- a/etc/csp_whitelist.xml +++ b/etc/csp_whitelist.xml @@ -3,35 +3,41 @@ - *.cloudinary.com + cloudinary.com + *.cloudinary.com cdnjs.cloudflare.com - *.cloudinary.com + cloudinary.com + *.cloudinary.com cdnjs.cloudflare.com - *.cloudinary.com + cloudinary.com + *.cloudinary.com - *.cloudinary.com + cloudinary.com + *.cloudinary.com - *.cloudinary.com + cloudinary.com + *.cloudinary.com data: - *.cloudinary.com + cloudinary.com + *.cloudinary.com diff --git a/etc/module.xml b/etc/module.xml index 5056d8c..65a86f7 100644 --- a/etc/module.xml +++ b/etc/module.xml @@ -1,6 +1,6 @@ - + diff --git a/marketplace.composer.json b/marketplace.composer.json index 14fe476..183cbe4 100644 --- a/marketplace.composer.json +++ b/marketplace.composer.json @@ -2,7 +2,7 @@ "name": "cloudinary/cloudinary", "description": "Cloudinary Magento 2 Integration.", "type": "magento2-module", - "version": "1.14.4", + "version": "1.14.6", "license": "MIT", "require": { "cloudinary/cloudinary_php": "*"