File tree 1 file changed +3
-2
lines changed
app/code/Magento/Catalog/Model/Indexer/Product/Flat 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -355,6 +355,7 @@ protected function _updateTemporaryTableByStoreValues(
355
355
//Update not simple attributes (eg. dropdown)
356
356
$ columnName = $ attributeCode . $ valueFieldSuffix ;
357
357
if (isset ($ flatColumns [$ columnName ])) {
358
+ $ columnValue = $ this ->_connection ->getIfNullSql ('ts.value ' , 't0.value ' );
358
359
$ select = $ this ->_connection ->select ();
359
360
$ select ->joinLeft (
360
361
['t0 ' => $ this ->_productIndexerHelper ->getTable ('eav_attribute_option_value ' )],
@@ -365,8 +366,8 @@ protected function _updateTemporaryTableByStoreValues(
365
366
'ts.option_id = et. ' . $ attributeCode . ' AND ts.store_id = ' . $ storeId ,
366
367
[]
367
368
)->columns (
368
- [$ columnName => $ this -> _connection -> getIfNullSql ( ' ts.value ' , ' t0.value ' ) ]
369
- )->where ($ columnName . ' IS NOT NULL ' );
369
+ [$ columnName => $ columnValue ]
370
+ )->where ($ columnValue . ' IS NOT NULL ' );
370
371
if (!empty ($ changedIds )) {
371
372
$ select ->where ($ this ->_connection ->quoteInto ('et.entity_id IN (?) ' , $ changedIds ));
372
373
}
You can’t perform that action at this time.
0 commit comments