From 5b17bd00341ca32825607e76c7a3b4bb6f272772 Mon Sep 17 00:00:00 2001 From: Anton Ohorodnyk <aohorodnyk@ebay.com> Date: Tue, 20 Oct 2015 16:44:20 +0300 Subject: [PATCH] MAGETWO-44118: Doesn't found bundle product - Added int type --- .../CatalogSearch/Model/Adapter/Mysql/Filter/Preprocessor.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/code/Magento/CatalogSearch/Model/Adapter/Mysql/Filter/Preprocessor.php b/app/code/Magento/CatalogSearch/Model/Adapter/Mysql/Filter/Preprocessor.php index c43a3623fa6..bfd32625dab 100644 --- a/app/code/Magento/CatalogSearch/Model/Adapter/Mysql/Filter/Preprocessor.php +++ b/app/code/Magento/CatalogSearch/Model/Adapter/Mysql/Filter/Preprocessor.php @@ -133,7 +133,8 @@ class Preprocessor implements PreprocessorInterface $value ); } else { - $table = $this->resource->getTableName('catalog_product_index_eav_decimal'); + $tableSuffix = $attribute->getBackendType() === 'decimal' ? '_decimal' : ''; + $table = $this->resource->getTableName("catalog_product_index_eav{$tableSuffix}"); $select = $this->connection->select(); $currentStoreId = $this->scopeResolver->getScope()->getId(); -- GitLab