We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c6196d7 commit 2d6fb62Copy full SHA for 2d6fb62
app/code/Magento/Catalog/Model/Indexer/Product/Flat/Action/Row.php
@@ -61,6 +61,7 @@ public function __construct(
61
* @param int|null $id
62
* @return \Magento\Catalog\Model\Indexer\Product\Flat\Action\Row
63
* @throws \Magento\Framework\Exception\LocalizedException
64
+ * @throws \Zend_Db_Statement_Exception
65
*/
66
public function execute($id = null)
67
{
@@ -109,11 +110,10 @@ public function execute($id = null)
109
110
}
111
$this->flatItemWriter->write($store->getId(), $ids[0], $this->_valueFieldSuffix);
112
- } else {
113
+ }
114
+ if ($status['value'] == \Magento\Catalog\Model\Product\Attribute\Source\Status::STATUS_DISABLED) {
115
$this->flatItemEraser->deleteProductsFromStore($id, $store->getId());
116
-
117
118
return $this;
119
0 commit comments