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