Skip to content

Commit 5d73d1d

Browse files
committed
MC-32278: Position sort does not work in GraphQl.
- fix static
1 parent e010bc8 commit 5d73d1d

File tree

1 file changed

+1
-4
lines changed
  • app/code/Magento/CatalogGraphQl/Model/Resolver/Products/DataProvider

1 file changed

+1
-4
lines changed

app/code/Magento/CatalogGraphQl/Model/Resolver/Products/DataProvider/ProductSearch.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
use Magento\Framework\Api\Search\SearchResultInterface;
1919
use Magento\Framework\Api\SearchCriteriaInterface;
2020
use Magento\Framework\Api\SearchResultsInterface;
21-
use Magento\Framework\App\ObjectManager;
2221

2322
/**
2423
* Product field data provider for product search, used for GraphQL resolver processing.
@@ -69,16 +68,14 @@ public function __construct(
6968
CollectionProcessorInterface $collectionPreProcessor,
7069
CollectionPostProcessor $collectionPostProcessor,
7170
SearchResultApplierFactory $searchResultsApplierFactory,
72-
ProductCollectionSearchCriteriaBuilder $searchCriteriaBuilder = null
71+
ProductCollectionSearchCriteriaBuilder $searchCriteriaBuilder
7372
) {
7473
$this->collectionFactory = $collectionFactory;
7574
$this->searchResultsFactory = $searchResultsFactory;
7675
$this->collectionPreProcessor = $collectionPreProcessor;
7776
$this->collectionPostProcessor = $collectionPostProcessor;
7877
$this->searchResultApplierFactory = $searchResultsApplierFactory;
7978
$this->searchCriteriaBuilder = $searchCriteriaBuilder;
80-
$this->searchCriteriaBuilder = $searchCriteriaBuilder
81-
?: ObjectManager::getInstance()->get(ProductCollectionSearchCriteriaBuilder::class);
8279
}
8380

8481
/**

0 commit comments

Comments
 (0)