Skip to content

Commit

Permalink
MAGETWO-82265: Fixed missing 'size' and 'type' props on a third-party…
Browse files Browse the repository at this point in the history
… category images #11541
  • Loading branch information
Oleksii Korshenko authored Nov 10, 2017
2 parents 8950e3d + 43f6077 commit 3541d8d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/code/Magento/Catalog/Model/Category/DataProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -494,8 +494,8 @@ private function convertValues($category, $categoryData)

$categoryData[$attributeCode][0]['name'] = $fileName;
$categoryData[$attributeCode][0]['url'] = $category->getImageUrl($attributeCode);
$categoryData['image'][0]['size'] = isset($stat) ? $stat['size'] : 0;
$categoryData['image'][0]['type'] = $mime;
$categoryData[$attributeCode][0]['size'] = isset($stat) ? $stat['size'] : 0;
$categoryData[$attributeCode][0]['type'] = $mime;
}
}
}
Expand Down

0 comments on commit 3541d8d

Please sign in to comment.