Skip to content

Commit c7f0b4b

Browse files
authored
Update Configurable.php
1 parent 6ae60c3 commit c7f0b4b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/code/Magento/ConfigurableProduct/Block/Cart/Item/Renderer/Configurable.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,8 @@ public function getProductForThumbnail()
6666
if ($this->_scopeConfig->getValue(
6767
self::CONFIG_THUMBNAIL_SOURCE,
6868
\Magento\Store\Model\ScopeInterface::SCOPE_STORE
69-
) == ThumbnailSource::OPTION_USE_PARENT_IMAGE || (empty($this->getChildProduct()) ||
70-
!($this->getChildProduct()->getThumbnail() && $this->getChildProduct()->getThumbnail() != 'no_selection')
69+
) == ThumbnailSource::OPTION_USE_PARENT_IMAGE || !($this->getChildProduct()
70+
&& $this->getChildProduct()->getThumbnail() && $this->getChildProduct()->getThumbnail() != 'no_selection')
7171
) {
7272
$product = $this->getProduct();
7373
} else {

0 commit comments

Comments
 (0)