File tree 2 files changed +10
-2
lines changed
app/code/Magento/ConfigurableProduct 2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -68,7 +68,11 @@ public function getProductForThumbnail()
68
68
self ::CONFIG_THUMBNAIL_SOURCE ,
69
69
\Magento \Store \Model \ScopeInterface::SCOPE_STORE
70
70
) == ThumbnailSource::OPTION_USE_PARENT_IMAGE ||
71
- !($ this ->getChildProduct ()->getThumbnail () && $ this ->getChildProduct ()->getThumbnail () != 'no_selection ' )
71
+ !(
72
+ $ this ->getChildProduct () &&
73
+ $ this ->getChildProduct ()->getThumbnail () &&
74
+ $ this ->getChildProduct ()->getThumbnail () != 'no_selection '
75
+ )
72
76
) {
73
77
$ product = $ this ->getProduct ();
74
78
} else {
Original file line number Diff line number Diff line change @@ -63,7 +63,11 @@ protected function getProductForThumbnail()
63
63
);
64
64
65
65
$ 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
+ )
67
71
? $ this ->getProduct ()
68
72
: $ this ->getChildProduct ();
69
73
You can’t perform that action at this time.
0 commit comments