File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
app/code/Magento/Catalog/Ui/DataProvider/Product/Listing/Collector Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change 1414use Magento \Catalog \Model \Product \Image \NotLoadInfoImageException ;
1515use Magento \Catalog \Ui \DataProvider \Product \ProductRenderCollectorInterface ;
1616use Magento \Framework \App \State ;
17+ use Magento \Framework \View \Design \ThemeInterface ;
1718use Magento \Framework \View \DesignInterface ;
1819use Magento \Store \Model \StoreManager ;
1920use Magento \Store \Model \StoreManagerInterface ;
@@ -104,6 +105,8 @@ public function __construct(
104105 public function collect (ProductInterface $ product , ProductRenderInterface $ productRender )
105106 {
106107 $ images = [];
108+ /** @var ThemeInterface $currentTheme */
109+ $ currentTheme = $ this ->design ->getDesignTheme ();
107110
108111 foreach ($ this ->imageCodes as $ imageCode ) {
109112 /** @var ImageInterface $image */
@@ -132,6 +135,7 @@ public function collect(ProductInterface $product, ProductRenderInterface $produ
132135 $ images [] = $ image ;
133136 }
134137
138+ $ this ->design ->setDesignTheme ($ currentTheme );
135139 $ productRender ->setImages ($ images );
136140 }
137141
You can’t perform that action at this time.
0 commit comments