Skip to content

Commit 44d2697

Browse files
ENGCOM-5235: Do an empty check instead of isset check on image removed #22910
- Merge Pull Request #22910 from arnoudhgz/magento2:feature/improve-image-roles-saving - Merged commits: 1. b65c12e
2 parents 9473b31 + b65c12e commit 44d2697

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/code/Magento/Catalog/Model/ProductRepository/MediaGalleryProcessor.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ private function processEntries(ProductInterface $product, array $newEntries, ar
231231
private function processMediaAttributes(ProductInterface $product, array $images): void
232232
{
233233
foreach ($images as $image) {
234-
if (!isset($image['removed']) && !empty($image['types'])) {
234+
if (empty($image['removed']) && !empty($image['types'])) {
235235
$this->processor->setMediaAttribute($product, $image['types'], $image['file']);
236236
}
237237
}

0 commit comments

Comments
 (0)