Skip to content

Commit 45421a5

Browse files
author
Igor Miniailo
committed
MAGETWO-44274: SQL error appears if Save & Duplicate product with images
1 parent 6a8244d commit 45421a5

File tree

1 file changed

+0
-2
lines changed
  • app/code/Magento/Catalog/Model/ResourceModel/Product/Attribute/Backend

1 file changed

+0
-2
lines changed

app/code/Magento/Catalog/Model/ResourceModel/Product/Attribute/Backend/Media.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -333,8 +333,6 @@ public function duplicate($attributeId, $newFiles, $originalProductId, $newProdu
333333
);
334334

335335
foreach ($this->getConnection()->fetchAll($select) as $row) {
336-
unset($row['record_id']);
337-
$row['entity_id'] = $newProductId;
338336
$row['value_id'] = $valueIdMap[$row['value_id']];
339337
unset($row['record_id']);
340338
$this->insertGalleryValueInStore($row);

0 commit comments

Comments
 (0)