Skip to content

Commit 2af7b14

Browse files
committed
[BUGFIX] Added row_id to the flat action indexer so the value isn't set to 0 for new products when using index on save
1 parent 3572ee9 commit 2af7b14

File tree

1 file changed

+1
-0
lines changed
  • app/code/Magento/Catalog/Model/Indexer/Product/Flat/Action

1 file changed

+1
-0
lines changed

app/code/Magento/Catalog/Model/Indexer/Product/Flat/Action/Indexer.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,7 @@ public function write($storeId, $productId, $valueFieldSuffix = '')
175175

176176
if (!empty($updateData)) {
177177
$updateData += ['entity_id' => $productId];
178+
$updateData += ['row_id' => $productId];
178179
$updateFields = [];
179180
foreach ($updateData as $key => $value) {
180181
$updateFields[$key] = $key;

0 commit comments

Comments
 (0)