Skip to content

Commit

Permalink
Issue 15467 where a configuration sku gets deleted but is still saved…
Browse files Browse the repository at this point in the history
… in a customer cart
  • Loading branch information
jonshipman authored and mage2pratik committed Jul 17, 2018
1 parent a160f2b commit d6e8ce9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ public function getProductForThumbnail()
self::CONFIG_THUMBNAIL_SOURCE,
\Magento\Store\Model\ScopeInterface::SCOPE_STORE
) == ThumbnailSource::OPTION_USE_PARENT_IMAGE ||
!($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,7 @@ protected function getProductForThumbnail()
);

$product = $config == ThumbnailSource::OPTION_USE_PARENT_IMAGE
|| (!$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 d6e8ce9

Please sign in to comment.