Magento 2.2 Fix Product::addImageToMediaGallery throws Exception#18951
Magento 2.2 Fix Product::addImageToMediaGallery throws Exception#18951magento-engcom-team merged 2 commits intomagento:2.2-developfrom progreg:issue-6803-magento22
Conversation
|
Hi @progreg. Thank you for your contribution
For more details, please, review the Magento Contributor Assistant documentation |
|
@progreg please rewrite branch history as cherry-picks of corresponding 2.3 commits, for example, |
|
@orlangur, I did force push to remove old commits, and all related changes from 2.3 were applied as a patch. Is it will be enough? |
|
Hi @orlangur, thank you for the review. |
|
@orlangur, Ok, thanks for the advice :) |
|
Hi @progreg. Thank you for your contribution. Please, consider to port this solution to 2.3 release line. |
|
Does not need to be ported as code already is in 2.3-develop |
Fixed Issues (if relevant)
Preconditions
Magento Version 2.2.6
PHP Version 7.1
Steps to reproduce
Expected result
Image gets added
Actual result
Exception gets thrown:
There's a workaround for this issue, using the
Product::savemethod instead of theProductRepositoryInterface::savemethod, but because it's a deprecated method I would like to avoid this.Contribution checklist