File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
app/code/Magento/Catalog/Model/Indexer/Product/Flat/Action Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -61,6 +61,7 @@ public function __construct(
61
61
* @param int|null $id
62
62
* @return \Magento\Catalog\Model\Indexer\Product\Flat\Action\Row
63
63
* @throws \Magento\Framework\Exception\LocalizedException
64
+ * @throws \Zend_Db_Statement_Exception
64
65
*/
65
66
public function execute ($ id = null )
66
67
{
@@ -109,11 +110,10 @@ public function execute($id = null)
109
110
}
110
111
$ this ->flatItemWriter ->write ($ store ->getId (), $ ids [0 ], $ this ->_valueFieldSuffix );
111
112
}
112
- } else {
113
+ }
114
+ if ($ status ['value ' ] == \Magento \Catalog \Model \Product \Attribute \Source \Status::STATUS_DISABLED ) {
113
115
$ this ->flatItemEraser ->deleteProductsFromStore ($ id , $ store ->getId ());
114
116
}
115
-
116
-
117
117
}
118
118
return $ this ;
119
119
}
You can’t perform that action at this time.
0 commit comments