File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
app/code/Magento/Swatches/Helper Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -471,13 +471,13 @@ public function getSwatchesByOptionsId(array $optionIds)
471
471
$ swatches = [];
472
472
$ fallbackValues = [];
473
473
$ currentStoreId = $ this ->storeManager ->getStore ()->getId ();
474
- foreach ($ swatchCollection as $ item ) {
474
+ foreach ($ swatchCollection-> getData () as $ item ) {
475
475
if ($ item ['type ' ] != Swatch::SWATCH_TYPE_TEXTUAL ) {
476
- $ swatches [$ item ['option_id ' ]] = $ item-> getData () ;
476
+ $ swatches [$ item ['option_id ' ]] = $ item ;
477
477
} elseif ($ item ['store_id ' ] == $ currentStoreId && $ item ['value ' ] != '' ) {
478
- $ fallbackValues [$ item ['option_id ' ]][$ currentStoreId ] = $ item-> getData () ;
478
+ $ fallbackValues [$ item ['option_id ' ]][$ currentStoreId ] = $ item ;
479
479
} elseif ($ item ['store_id ' ] == self ::DEFAULT_STORE_ID ) {
480
- $ fallbackValues [$ item ['option_id ' ]][self ::DEFAULT_STORE_ID ] = $ item-> getData () ;
480
+ $ fallbackValues [$ item ['option_id ' ]][self ::DEFAULT_STORE_ID ] = $ item ;
481
481
}
482
482
}
483
483
You can’t perform that action at this time.
0 commit comments