From e8af99b41528ad7382558902eb1f873bcea2918c Mon Sep 17 00:00:00 2001 From: Riccardo Tempesta Date: Tue, 22 Aug 2017 08:18:11 +0200 Subject: [PATCH] FIX for issue 9930 - Asymmetric Transaction Error with ElasticSearch --- app/code/Magento/Catalog/Model/Product/Gallery/Processor.php | 1 + 1 file changed, 1 insertion(+) diff --git a/app/code/Magento/Catalog/Model/Product/Gallery/Processor.php b/app/code/Magento/Catalog/Model/Product/Gallery/Processor.php index d5ad9a8ea1138..080ed0cc54088 100644 --- a/app/code/Magento/Catalog/Model/Product/Gallery/Processor.php +++ b/app/code/Magento/Catalog/Model/Product/Gallery/Processor.php @@ -193,6 +193,7 @@ public function addImage( $mediaGalleryData['images'][] = [ 'file' => $fileName, 'position' => $position, + 'media_type' => 'image', 'label' => '', 'disabled' => (int)$exclude, ];