Skip to content

Commit 625afe5

Browse files
committed
ACP2E-322:'Move out of stock to the bottom' automating sorting is not updated when product's stock changes
1 parent b94fcd9 commit 625afe5

File tree

5 files changed

+5
-4
lines changed

5 files changed

+5
-4
lines changed

app/code/Magento/CatalogInventory/Model/ResourceModel/StockStatusFilter.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
use Magento\CatalogInventory\Api\Data\StockStatusInterface;
1111
use Magento\CatalogInventory\Api\StockConfigurationInterface;
1212
use Magento\CatalogInventory\Model\Stock;
13+
use Magento\CatalogInventory\Model\StockStatusApplierInterface;
1314
use Magento\Framework\App\ResourceConnection;
1415
use Magento\Framework\DB\Select;
1516
use Magento\Framework\App\ObjectManager;

app/code/Magento/CatalogInventory/Model/ResourceModel/StockStatusApplier.php renamed to app/code/Magento/CatalogInventory/Model/StockStatusApplier.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
*/
66
declare(strict_types=1);
77

8-
namespace Magento\CatalogInventory\Model\ResourceModel;
8+
namespace Magento\CatalogInventory\Model;
99

1010
/**
1111
* Search Result Applier getters and setters

app/code/Magento/CatalogInventory/Model/ResourceModel/StockStatusApplierInterface.php renamed to app/code/Magento/CatalogInventory/Model/StockStatusApplierInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
*/
66
declare(strict_types=1);
77

8-
namespace Magento\CatalogInventory\Model\ResourceModel;
8+
namespace Magento\CatalogInventory\Model;
99

1010
/**
1111
* Search Result Applier interface.

app/code/Magento/CatalogInventory/etc/di.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333

3434
<preference for="Magento\CatalogInventory\Model\ResourceModel\QtyCounterInterface" type="Magento\CatalogInventory\Model\ResourceModel\Stock" />
3535
<preference for="Magento\CatalogInventory\Model\ResourceModel\StockStatusFilterInterface" type="Magento\CatalogInventory\Model\ResourceModel\StockStatusFilter" />
36-
<preference for="Magento\CatalogInventory\Model\ResourceModel\StockStatusApplierInterface" type="Magento\CatalogInventory\Model\ResourceModel\StockStatusApplier" />
36+
<preference for="Magento\CatalogInventory\Model\StockStatusApplierInterface" type="Magento\CatalogInventory\Model\StockStatusApplier" />
3737
<type name="Magento\Catalog\Model\Product\Attribute\Repository">
3838
<plugin name="filterCustomAttribute" type="Magento\CatalogInventory\Model\Plugin\FilterCustomAttribute" />
3939
</type>

app/code/Magento/Elasticsearch/Model/ResourceModel/Fulltext/Collection/SearchResultApplier.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
namespace Magento\Elasticsearch\Model\ResourceModel\Fulltext\Collection;
88

99
use Magento\Catalog\Api\Data\ProductInterface;
10-
use Magento\CatalogInventory\Model\ResourceModel\StockStatusApplierInterface;
10+
use Magento\CatalogInventory\Model\StockStatusApplierInterface;
1111
use Magento\CatalogInventory\Model\ResourceModel\StockStatusFilterInterface;
1212
use Magento\CatalogSearch\Model\ResourceModel\Fulltext\Collection\SearchResultApplierInterface;
1313
use Magento\Framework\Api\Search\SearchResultInterface;

0 commit comments

Comments
 (0)