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 ;
@@ -92,6 +93,8 @@ public function __construct(
9293 public function collect (ProductInterface $ product , ProductRenderInterface $ productRender )
9394 {
9495 $ images = [];
96+ /** @var ThemeInterface $currentTheme */
97+ $ currentTheme = $ this ->design ->getDesignTheme ();
9598
9699 foreach ($ this ->imageCodes as $ imageCode ) {
97100 /** @var ImageInterface $image */
@@ -120,6 +123,7 @@ public function collect(ProductInterface $product, ProductRenderInterface $produ
120123 $ images [] = $ image ;
121124 }
122125
126+ $ this ->design ->setDesignTheme ($ currentTheme );
123127 $ productRender ->setImages ($ images );
124128 }
125129
You can’t perform that action at this time.
0 commit comments