Skip to content

Commit b3bb42f

Browse files
Chhandak.Baruadevarul
authored andcommitted
ACP2E-1479: Product with any custom option causes an error when deleting product images
1 parent ae0678e commit b3bb42f

File tree

1 file changed

+1
-2
lines changed
  • app/code/Magento/Catalog/Controller/Adminhtml/Product

1 file changed

+1
-2
lines changed

app/code/Magento/Catalog/Controller/Adminhtml/Product/Save.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,6 @@ public function execute()
141141
$originalSku = $product->getSku();
142142
$canSaveCustomOptions = $product->getCanSaveCustomOptions();
143143
$product->save();
144-
145144
$this->handleImageRemoveError($data, $product->getId());
146145
$productId = $product->getEntityId();
147146
$productAttributeSetId = $product->getAttributeSetId();
@@ -214,7 +213,7 @@ public function execute()
214213
/**
215214
* Notify customer when image was not deleted in specific case.
216215
*
217-
* TODO: temporary workaround must be eliminated in MAGETNO-45306
216+
* TODO: temporary workaround must be eliminated in MAGETWO-45306
218217
*
219218
* @param array $postData
220219
* @param int $productId

0 commit comments

Comments
 (0)