File tree Expand file tree Collapse file tree 2 files changed +10
-2
lines changed
app/code/Magento/ConfigurableProduct Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -65,7 +65,11 @@ public function getProductForThumbnail()
6565 self ::CONFIG_THUMBNAIL_SOURCE ,
6666 \Magento \Store \Model \ScopeInterface::SCOPE_STORE
6767 ) == ThumbnailSource::OPTION_USE_PARENT_IMAGE ||
68- !($ this ->getChildProduct ()->getThumbnail () && $ this ->getChildProduct ()->getThumbnail () != 'no_selection ' )
68+ !(
69+ $ this ->getChildProduct () &&
70+ $ this ->getChildProduct ()->getThumbnail () &&
71+ $ this ->getChildProduct ()->getThumbnail () != 'no_selection '
72+ )
6973 ) {
7074 $ product = $ this ->getProduct ();
7175 } else {
Original file line number Diff line number Diff line change @@ -63,7 +63,11 @@ protected function getProductForThumbnail()
6363 );
6464
6565 $ product = $ config == ThumbnailSource::OPTION_USE_PARENT_IMAGE
66- || (!$ this ->getChildProduct ()->getThumbnail () || $ this ->getChildProduct ()->getThumbnail () == 'no_selection ' )
66+ || (
67+ !$ this ->getChildProduct () ||
68+ !$ this ->getChildProduct ()->getThumbnail () ||
69+ $ this ->getChildProduct ()->getThumbnail () == 'no_selection '
70+ )
6771 ? $ this ->getProduct ()
6872 : $ this ->getChildProduct ();
6973
You can’t perform that action at this time.
0 commit comments