Created
April 5, 2022 12:49
-
-
Save jordanvector/cb7e6361f08c417898c0f8b2c1f2e270 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From 36b6f90eca4b122f234e9a9982762acf28d18ca8 Mon Sep 17 00:00:00 2001 | |
From: Jordan Schinella <[email protected]> | |
Date: Wed, 23 Mar 2022 18:15:36 -0400 | |
Subject: [PATCH] fix inventory search indexer | |
--- | |
.../Indexer/BundleChildStockStatusModifier.php | 6 +++--- | |
1 file changed, 3 insertions(+), 3 deletions(-) | |
diff --git a/Model/CatalogSearch/Indexer/BundleChildStockStatusModifier.php b/Model/CatalogSearch/Indexer/BundleChildStockStatusModifier.php | |
index 0d9c2bd..98db61a 100644 | |
--- a/Model/CatalogSearch/Indexer/BundleChildStockStatusModifier.php | |
+++ b/Model/CatalogSearch/Indexer/BundleChildStockStatusModifier.php | |
@@ -68,7 +68,7 @@ class BundleChildStockStatusModifier implements SelectModifierInterface | |
['product_link_bundle' => $this->resourceConnection->getTableName('catalog_product_bundle_selection')], | |
[new \Zend_Db_Expr('1')] | |
)->where( | |
- "product_link_bundle.parent_product_id = product.{$linkField}" | |
+ "product_link_bundle.parent_product_id = e.{$linkField}" | |
); | |
$existsSelect->join( | |
['bundle_product_child' => $this->resourceConnection->getTableName('catalog_product_entity')], | |
@@ -90,7 +90,7 @@ class BundleChildStockStatusModifier implements SelectModifierInterface | |
)->where('stock_status_index_child.is_salable = 1'); | |
$typeBundle = Type::TYPE_CODE; | |
$select->where( | |
- "product.type_id != '{$typeBundle}' OR EXISTS ({$existsSelect->assemble()})" | |
+ "e.type_id != '{$typeBundle}' OR EXISTS ({$existsSelect->assemble()})" | |
); | |
} | |
-} | |
+} | |
\ No newline at end of file | |
-- | |
2.35.1 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment