Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit aa1ac2d

Browse files
committed
CLOUDINARY-559 - fix minor issue with spinset condition
1 parent 24d6ba2 commit aa1ac2d

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

‎Plugin/Catalog/Block/Product/View/Gallery.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ protected function getCloudinaryPGOptions($refresh = false, $ignoreDisabled = fa
156156
$this->cloudinaryPGoptions['mediaAssets'] = [];
157157
foreach ($galleryAssets as $key => $value) {
158158
$publicId = $url = $transformation = null;
159-
if ($value['type'] === 'image') {
159+
if ($value['type'] === 'image' && isset($value['file']) && $value['file'] ) {
160160
//Check if image is a spinset:
161161
$cldspinset = $this->productSpinsetMapFactory->create()->getCollection()->addFieldToFilter("image_name", $value['file'])->setPageSize(1)->getFirstItem();
162162
if ($cldspinset && ($cldspinset = $cldspinset->getCldspinset())) {

‎composer.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "cloudinary/cloudinary-magento2",
33
"description": "Cloudinary Magento 2 Integration.",
44
"type": "magento2-module",
5-
"version": "2.0.1",
5+
"version": "2.0.2",
66
"license": "MIT",
77
"require": {
88
"cloudinary/cloudinary_php": ">=2.7 <=2.11.0"

‎etc/module.xml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0"?>
22
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Module/etc/module.xsd">
3-
<module name="Cloudinary_Cloudinary" setup_version="2.0.1">
3+
<module name="Cloudinary_Cloudinary" setup_version="2.0.2">
44
<sequence>
55
<module name="Magento_ProductVideo"/>
66
<module name="Magento_PageBuilder"/>

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /