Skip to content

Commit

Permalink
linetoobig
Browse files Browse the repository at this point in the history
  • Loading branch information
jonshipman authored and mage2pratik committed Jul 17, 2018
1 parent d6e8ce9 commit 66dc4d8
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,11 @@ public function getProductForThumbnail()
self::CONFIG_THUMBNAIL_SOURCE,
\Magento\Store\Model\ScopeInterface::SCOPE_STORE
) == ThumbnailSource::OPTION_USE_PARENT_IMAGE ||
!($this->getChildProduct() && $this->getChildProduct()->getThumbnail() && $this->getChildProduct()->getThumbnail() != 'no_selection')
!(
$this->getChildProduct() &&
$this->getChildProduct()->getThumbnail() &&
$this->getChildProduct()->getThumbnail() != 'no_selection'
)
) {
$product = $this->getProduct();
} else {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,11 @@ protected function getProductForThumbnail()
);

$product = $config == ThumbnailSource::OPTION_USE_PARENT_IMAGE
|| (!$this->getChildProduct() || !$this->getChildProduct()->getThumbnail() || $this->getChildProduct()->getThumbnail() == 'no_selection')
|| (
!$this->getChildProduct() ||
!$this->getChildProduct()->getThumbnail() ||
$this->getChildProduct()->getThumbnail() == 'no_selection'
)
? $this->getProduct()
: $this->getChildProduct();

Expand Down

0 comments on commit 66dc4d8

Please sign in to comment.