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 14
14
use Magento \Catalog \Model \Product \Image \NotLoadInfoImageException ;
15
15
use Magento \Catalog \Ui \DataProvider \Product \ProductRenderCollectorInterface ;
16
16
use Magento \Framework \App \State ;
17
+ use Magento \Framework \View \Design \ThemeInterface ;
17
18
use Magento \Framework \View \DesignInterface ;
18
19
use Magento \Store \Model \StoreManager ;
19
20
use Magento \Store \Model \StoreManagerInterface ;
@@ -104,6 +105,8 @@ public function __construct(
104
105
public function collect (ProductInterface $ product , ProductRenderInterface $ productRender )
105
106
{
106
107
$ images = [];
108
+ /** @var ThemeInterface $currentTheme */
109
+ $ currentTheme = $ this ->design ->getDesignTheme ();
107
110
108
111
foreach ($ this ->imageCodes as $ imageCode ) {
109
112
/** @var ImageInterface $image */
@@ -132,6 +135,7 @@ public function collect(ProductInterface $product, ProductRenderInterface $produ
132
135
$ images [] = $ image ;
133
136
}
134
137
138
+ $ this ->design ->setDesignTheme ($ currentTheme );
135
139
$ productRender ->setImages ($ images );
136
140
}
137
141
You can’t perform that action at this time.
0 commit comments