{"data":{"id":"ACSD-48234","source":"qpt","sourceRef":"magento/quality-patches@1.1.84","title":"Fixes the issue where the catalog search result shows an incorrect category item count when the \"show out of stock\" option is enabled.","categories":["Catalog Search","Inventory"],"components":["magento/module-catalog-inventory","magento/module-elasticsearch","magento/module-inventory-catalog","magento/module-inventory-catalog-api","magento/module-inventory-elasticsearch"],"origin":"adobe-commerce-support","documentation":{"url":"https://experienceleague.adobe.com/en/docs/commerce-operations/tools/quality-patches-tool/patches-available-in-qpt/v1-1-25/acsd-48234-catalog-search-result-shows-incorrect-category","path":"help/tools/quality-patches-tool/patches-available-in-qpt/v1-1-25/acsd-48234-catalog-search-result-shows-incorrect-category.md","blobSha":"906de7448749b545f4ac7caa9b2ea6fa527a6fa5","description":"The catalog search result shows an incorrect category item count when the Display Out of Stock Products option is enabled.","stepsToReproduce":"1. Go to Stores > Attributes > Product and open color attribute. 1. Add two options, for example orange and green. Save the attribute. 1. Go to Stores > Attributes > Attribute Set and add the color attribute to the Default attribute set. 1. Go to Stores > Settings > Configuration > CATALOG > Inventory > Stock Options and set Display Out of Stock Products to _Yes_. 1. Create category \"cat1\". 1. Create two products: 1. Name: prod1, Color: orange, Categories: cat1. 1. Name: prod2, Color: green, Categories: cat1. 1. Open cat1 category on the storefront. 1. Select the orange color at the layered navigation.","introducedInQpt":"1.1.25","createdFor":["2.4.5-p1"],"documentedRange":"2.4.5 - 2.4.5-p4","scheduledFixRelease":"2.4.6"},"files":[{"package":"magento/magento2-base","constraint":">=2.4.5 <2.4.5-p12","path":"patches/os/ACSD-48234_2.4.5-p1.patch","blobSha":"7064ee01cab272cf198f1b6ad09e593771b8e3e4","url":"https://raw.githubusercontent.com/magento/quality-patches/11d565bdde197b9c7bac859a5698e99098b48457/patches/os/ACSD-48234_2.4.5-p1.patch","thirdParty":false,"modifies":[{"path":"vendor/magento/module-catalog-inventory/Model/ResourceModel/StockStatusFilter.php","change":"modified","package":"magento/module-catalog-inventory"},{"path":"vendor/magento/module-catalog-inventory/Model/StockStatusApplier.php","change":"modified","package":"magento/module-catalog-inventory"},{"path":"vendor/magento/module-catalog-inventory/Model/StockStatusApplierInterface.php","change":"modified","package":"magento/module-catalog-inventory"},{"path":"vendor/magento/module-elasticsearch/Model/ResourceModel/Fulltext/Collection/SearchResultApplier.php","change":"modified","package":"magento/module-elasticsearch"}],"packages":["magento/module-catalog-inventory","magento/module-elasticsearch"],"hasTests":false,"applicableVersions":{"magento-community":["2.4.5-p11","2.4.5-p10","2.4.5-p9","2.4.5-p8","2.4.5-p7","2.4.5-p6","2.4.5-p5","2.4.5-p4","2.4.5-p3","2.4.5-p2","2.4.5-p1","2.4.5"],"magento-commerce":["2.4.5-p11","2.4.5-p10","2.4.5-p9","2.4.5-p8","2.4.5-p7","2.4.5-p6","2.4.5-p5","2.4.5-p4","2.4.5-p3","2.4.5-p2","2.4.5-p1","2.4.5"],"mage-os":[]},"unknownVersions":[],"requires":[],"replacedWith":null,"deprecated":false},{"package":"magento/magento2-base","constraint":">=2.4.5-p12 <2.4.6","path":"patches/os/ACSD-65625_2.4.5-p12.patch","blobSha":"9d94fef8e436d74f51512fbf83350834abddb84e","url":"https://raw.githubusercontent.com/magento/quality-patches/11d565bdde197b9c7bac859a5698e99098b48457/patches/os/ACSD-65625_2.4.5-p12.patch","thirdParty":false,"modifies":[{"path":"vendor/magento/module-catalog-inventory/Model/ResourceModel/StockStatusFilter.php","change":"modified","package":"magento/module-catalog-inventory"},{"path":"vendor/magento/module-catalog-inventory/Model/StockStatusApplier.php","change":"modified","package":"magento/module-catalog-inventory"},{"path":"vendor/magento/module-catalog-inventory/Model/StockStatusApplierInterface.php","change":"modified","package":"magento/module-catalog-inventory"}],"packages":["magento/module-catalog-inventory"],"hasTests":false,"applicableVersions":{"magento-community":["2.4.5-p17","2.4.5-p16","2.4.5-p15","2.4.5-p14","2.4.5-p13","2.4.5-p12"],"magento-commerce":["2.4.5-p17","2.4.5-p16","2.4.5-p15","2.4.5-p14","2.4.5-p13","2.4.5-p12"],"mage-os":[]},"unknownVersions":[],"requires":[],"replacedWith":null,"deprecated":false},{"package":"magento/inventory-metapackage","constraint":">=1.2.5 <1.2.5-p12","path":"patches/os/ACSD-48234_1.2.5.patch","blobSha":"fffb48330a5e6fa8283c4a72da23fd0b7e7e0fda","url":"https://raw.githubusercontent.com/magento/quality-patches/11d565bdde197b9c7bac859a5698e99098b48457/patches/os/ACSD-48234_1.2.5.patch","thirdParty":false,"modifies":[{"path":"vendor/magento/module-inventory-catalog/Model/ResourceModel/SortableBySaleabilityProvider.php","change":"added","package":"magento/module-inventory-catalog"},{"path":"vendor/magento/module-inventory-catalog/Model/ResourceModel/StockStatusFilter.php","change":"modified","package":"magento/module-inventory-catalog"},{"path":"vendor/magento/module-inventory-catalog/Model/StockStatusApplier.php","change":"modified","package":"magento/module-inventory-catalog"},{"path":"vendor/magento/module-inventory-catalog/Plugin/Catalog/Block/ProductList/UpdateToolbarCount.php","change":"deleted","package":"magento/module-inventory-catalog"},{"path":"vendor/magento/module-inventory-catalog/Plugin/Catalog/Model/ResourceModel/Product/CollectionPlugin.php","change":"added","package":"magento/module-inventory-catalog"},{"path":"vendor/magento/module-inventory-catalog/Plugin/CatalogInventory/Model/ResourceModel/StockStatusFilterPlugin.php","change":"modified","package":"magento/module-inventory-catalog"},{"path":"vendor/magento/module-inventory-catalog/etc/di.xml","change":"modified","package":"magento/module-inventory-catalog"},{"path":"vendor/magento/module-inventory-catalog-api/Model/SortableBySaleabilityInterface.php","change":"added","package":"magento/module-inventory-catalog-api"},{"path":"vendor/magento/module-inventory-elasticsearch/Model/ResourceModel/SortableBySaleabilityProvider.php","change":"added","package":"magento/module-inventory-elasticsearch"},{"path":"vendor/magento/module-inventory-elasticsearch/Plugin/Model/Adapter/BatchDataMapper/ProductDataMapperPlugin.php","change":"added","package":"magento/module-inventory-elasticsearch"},{"path":"vendor/magento/module-inventory-elasticsearch/Plugin/Model/Adapter/FieldMapper/AdditionalFieldMapperPlugin.php","change":"added","package":"magento/module-inventory-elasticsearch"},{"path":"vendor/magento/module-inventory-elasticsearch/etc/di.xml","change":"modified","package":"magento/module-inventory-elasticsearch"}],"packages":["magento/module-inventory-catalog","magento/module-inventory-catalog-api","magento/module-inventory-elasticsearch"],"hasTests":false,"applicableVersions":{"magento-community":["2.4.5-p11","2.4.5-p10","2.4.5-p9","2.4.5-p8","2.4.5-p7","2.4.5-p6","2.4.5-p5","2.4.5-p4","2.4.5-p3","2.4.5-p2","2.4.5-p1","2.4.5"],"magento-commerce":["2.4.5-p11","2.4.5-p10","2.4.5-p9","2.4.5-p8","2.4.5-p7","2.4.5-p6","2.4.5-p5","2.4.5-p4","2.4.5-p3","2.4.5-p2","2.4.5-p1","2.4.5"],"mage-os":[]},"unknownVersions":["2.3.7-p4","2.3.7-p3","2.3.7-p2","2.3.7-p1","2.3.7","2.3.6-p1","2.3.6","2.3.5-p2","2.3.5-p1","2.3.5","2.3.4-p2","2.3.4-p1","2.3.4","2.3.3-p2","2.3.3","2.3.2-p2","2.3.2-p1","2.3.2","2.3.1","2.3.0"],"requires":[],"replacedWith":null,"deprecated":false},{"package":"magento/inventory-metapackage","constraint":">=1.2.5-p12 <1.2.6","path":"patches/os/ACSD-65625_1.2.5-p12.patch","blobSha":"1326a051016c96b09a344fde84a797321c8d8073","url":"https://raw.githubusercontent.com/magento/quality-patches/11d565bdde197b9c7bac859a5698e99098b48457/patches/os/ACSD-65625_1.2.5-p12.patch","thirdParty":false,"modifies":[{"path":"vendor/magento/module-inventory-catalog/Model/ResourceModel/SortableBySaleabilityProvider.php","change":"added","package":"magento/module-inventory-catalog"},{"path":"vendor/magento/module-inventory-catalog/Model/ResourceModel/StockStatusFilter.php","change":"modified","package":"magento/module-inventory-catalog"},{"path":"vendor/magento/module-inventory-catalog/Model/StockStatusApplier.php","change":"modified","package":"magento/module-inventory-catalog"},{"path":"vendor/magento/module-inventory-catalog/Plugin/Catalog/Block/ProductList/UpdateToolbarCount.php","change":"deleted","package":"magento/module-inventory-catalog"},{"path":"vendor/magento/module-inventory-catalog/Plugin/Catalog/Model/ResourceModel/Product/CollectionPlugin.php","change":"added","package":"magento/module-inventory-catalog"},{"path":"vendor/magento/module-inventory-catalog/Plugin/CatalogInventory/Model/ResourceModel/StockStatusFilterPlugin.php","change":"modified","package":"magento/module-inventory-catalog"},{"path":"vendor/magento/module-inventory-catalog/etc/di.xml","change":"modified","package":"magento/module-inventory-catalog"},{"path":"vendor/magento/module-inventory-catalog-api/Model/SortableBySaleabilityInterface.php","change":"added","package":"magento/module-inventory-catalog-api"},{"path":"vendor/magento/module-inventory-elasticsearch/Model/ResourceModel/SortableBySaleabilityProvider.php","change":"added","package":"magento/module-inventory-elasticsearch"},{"path":"vendor/magento/module-inventory-elasticsearch/Plugin/Model/Adapter/BatchDataMapper/ProductDataMapperPlugin.php","change":"added","package":"magento/module-inventory-elasticsearch"},{"path":"vendor/magento/module-inventory-elasticsearch/Plugin/Model/Adapter/FieldMapper/AdditionalFieldMapperPlugin.php","change":"added","package":"magento/module-inventory-elasticsearch"},{"path":"vendor/magento/module-inventory-elasticsearch/etc/di.xml","change":"modified","package":"magento/module-inventory-elasticsearch"}],"packages":["magento/module-inventory-catalog","magento/module-inventory-catalog-api","magento/module-inventory-elasticsearch"],"hasTests":false,"applicableVersions":{"magento-community":["2.4.5-p17","2.4.5-p16","2.4.5-p15","2.4.5-p14","2.4.5-p13","2.4.5-p12"],"magento-commerce":["2.4.5-p17","2.4.5-p16","2.4.5-p15","2.4.5-p14","2.4.5-p13","2.4.5-p12"],"mage-os":[]},"unknownVersions":["2.3.7-p4","2.3.7-p3","2.3.7-p2","2.3.7-p1","2.3.7","2.3.6-p1","2.3.6","2.3.5-p2","2.3.5-p1","2.3.5","2.3.4-p2","2.3.4-p1","2.3.4","2.3.3-p2","2.3.3","2.3.2-p2","2.3.2-p1","2.3.2","2.3.1","2.3.0"],"requires":[],"replacedWith":null,"deprecated":false}],"applicableVersions":{"magento-community":["2.4.5-p17","2.4.5-p16","2.4.5-p15","2.4.5-p14","2.4.5-p13","2.4.5-p12","2.4.5-p11","2.4.5-p10","2.4.5-p9","2.4.5-p8","2.4.5-p7","2.4.5-p6","2.4.5-p5","2.4.5-p4","2.4.5-p3","2.4.5-p2","2.4.5-p1","2.4.5"],"magento-commerce":["2.4.5-p17","2.4.5-p16","2.4.5-p15","2.4.5-p14","2.4.5-p13","2.4.5-p12","2.4.5-p11","2.4.5-p10","2.4.5-p9","2.4.5-p8","2.4.5-p7","2.4.5-p6","2.4.5-p5","2.4.5-p4","2.4.5-p3","2.4.5-p2","2.4.5-p1","2.4.5"],"mage-os":[]},"conditions":null,"requirements":null},"_documentation":"https://magento.watch/api","_description":"Quality patch ACSD-48234 details"}