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 ;
@@ -92,6 +93,8 @@ public function __construct(
92
93
public function collect (ProductInterface $ product , ProductRenderInterface $ productRender )
93
94
{
94
95
$ images = [];
96
+ /** @var ThemeInterface $currentTheme */
97
+ $ currentTheme = $ this ->design ->getDesignTheme ();
95
98
96
99
foreach ($ this ->imageCodes as $ imageCode ) {
97
100
/** @var ImageInterface $image */
@@ -120,6 +123,7 @@ public function collect(ProductInterface $product, ProductRenderInterface $produ
120
123
$ images [] = $ image ;
121
124
}
122
125
126
+ $ this ->design ->setDesignTheme ($ currentTheme );
123
127
$ productRender ->setImages ($ images );
124
128
}
125
129
You can’t perform that action at this time.
0 commit comments