Skip to content

Commit 1442c17

Browse files
committed
MAGETWO-84515: Fixed missing 'size' and 'type' props on a third-party category images [Backport 2.2] magento#12443
- Merge Pull Request magento#12443 from vovayatsyuk/magento2:2.2-fix-incorrect-category-image-properties - Merged commits: 1. 14205b7
2 parents 9c3d257 + 14205b7 commit 1442c17

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/code/Magento/Catalog/Model/Category/DataProvider.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -494,8 +494,8 @@ private function convertValues($category, $categoryData)
494494

495495
$categoryData[$attributeCode][0]['name'] = $fileName;
496496
$categoryData[$attributeCode][0]['url'] = $category->getImageUrl($attributeCode);
497-
$categoryData['image'][0]['size'] = isset($stat) ? $stat['size'] : 0;
498-
$categoryData['image'][0]['type'] = $mime;
497+
$categoryData[$attributeCode][0]['size'] = isset($stat) ? $stat['size'] : 0;
498+
$categoryData[$attributeCode][0]['type'] = $mime;
499499
}
500500
}
501501
}

0 commit comments

Comments
 (0)