Skip to content

Commit 5d1b009

Browse files
MAGECLOUD-4448-4449: Deliver core patches (#4)
1 parent 5639587 commit 5d1b009

File tree

4 files changed

+30
-1
lines changed

4 files changed

+30
-1
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"description": "Provides critical fixes for Magento 2 Enterprise Edition",
44
"type": "magento2-component",
55
"version": "1.0.0",
6-
"license": "OSL-3",
6+
"license": "OSL-3.0",
77
"require": {
88
"php": "^7.0",
99
"ext-json": "*",

patches.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,12 @@
183183
},
184184
"Backward Compatibility of new Mail Interfaces": {
185185
"2.3.3": "MAGECLOUD-4442__fix_backward_compatibility_of_new_mail_interfaces__2.3.3.patch"
186+
},
187+
"Catalog Product pagination does not work on Elasticsearch 6.x": {
188+
"2.3.3": "MC-21696__fix_broken_pagination_on_ES6__2.3.3.patch"
189+
},
190+
"Catalog Product collection method chaining is broken": {
191+
"2.3.3": "MC-21820__fix_broken_method_chaining__2.3.3.patch"
186192
}
187193
},
188194
"monolog/monolog": {
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
diff -Naur a/vendor/magento/module-elasticsearch/Model/ResourceModel/Fulltext/Collection/SearchResultApplier.php b/vendor/magento/module-elasticsearch/Model/ResourceModel/Fulltext/Collection/SearchResultApplier.php
2+
--- a/vendor/magento/module-elasticsearch/Model/ResourceModel/Fulltext/Collection/SearchResultApplier.php
3+
+++ b/vendor/magento/module-elasticsearch/Model/ResourceModel/Fulltext/Collection/SearchResultApplier.php
4+
@@ -50,6 +50,7 @@ class SearchResultApplier implements SearchResultApplierInterface
5+
foreach ($this->searchResult->getItems() as $item) {
6+
$ids[] = (int)$item->getId();
7+
}
8+
+ $this->collection->setPageSize(null);
9+
$this->collection->getSelect()->where('e.entity_id IN (?)', $ids);
10+
$orderList = join(',', $ids);
11+
$this->collection->getSelect()->reset(\Magento\Framework\DB\Select::ORDER);
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
diff -Naur a/vendor/magento/module-catalog/Model/ResourceModel/Product/Collection.php b/vendor/magento/module-catalog/Model/ResourceModel/Product/Collection.php
2+
--- a/vendor/magento/module-catalog/Model/ResourceModel/Product/Collection.php
3+
+++ b/vendor/magento/module-catalog/Model/ResourceModel/Product/Collection.php
4+
@@ -1584,6 +1584,8 @@ class Collection extends \Magento\Catalog\Model\ResourceModel\Collection\Abstrac
5+
} else {
6+
return parent::addAttributeToFilter($attribute, $condition, $joinType);
7+
}
8+
+
9+
+ return $this;
10+
}
11+
12+
/**

0 commit comments

Comments
 (0)