We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f88e2b2 commit 85b119eCopy full SHA for 85b119e
app/code/Magento/Catalog/Model/ResourceModel/Product/Gallery.php
@@ -388,7 +388,7 @@ public function insertGalleryValueInStore($data)
388
$this->getTable(self::GALLERY_VALUE_TABLE)
389
);
390
391
- if ($data['image_metadata']) {
+ if (!empty($data['image_metadata'])) {
392
$data['image_metadata'] = $this->getSerializer()->serialize($data['image_metadata']);
393
}
394
$this->getConnection()->insert(
0 commit comments