Skip to content

Commit c06ae87

Browse files
author
Sergey Shvets
committed
MAGETWO-66789: [Backport] - [Performance] No empty image placeholder on category page - for 2.1.6
1 parent 5fffd63 commit c06ae87

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

app/code/Magento/Catalog/Block/Product/ImageBlockBuilder.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@ public function buildBlock($product, $displayArea)
106106

107107
$type = isset($imageArguments['type']) ? $imageArguments['type'] : null;
108108
$baseFilePath = $product->getData($type);
109+
$baseFilePath = $baseFilePath === 'no_selection' ? null : $baseFilePath;
109110

110111
$imageAsset = $this->viewAssetImageFactory->create(
111112
[

0 commit comments

Comments
 (0)