Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
--- Model/Resolver/Batch/AbstractLikedProducts.php 2020-07-20 11:13:10.000000000 +0000
+++ Model/Resolver/Batch/AbstractLikedProducts.php 2021-03-03 13:55:38.897669052 +0000
@@ -110,6 +110,10 @@
//Matching products with related products.
$relationsData = [];
foreach ($relations as $productId => $relatedIds) {
+ //Remove related products that not exist in map list.
+ $relatedIds = array_filter($relatedIds, function ($relatedId) use ($relatedProducts) {
+ return isset($relatedProducts[$relatedId]);
+ });
$relationsData[$productId] = array_map(
function ($id) use ($relatedProducts) {
return $relatedProducts[$id];
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ magento/module-elasticsearch|Patch-Magento\_Elasticsearch-M2.3.x-Send-Error-Mess
magento/module-elasticsearch|Patch-Magento\_Elasticsearch-M2.3.0-M2.3.1-prices-pass-website-id.patch| | >= 2.3.0 <= 2.3.1
magento/module-elasticsearch|Patch-Magento_Elasticsearch-M2.3-attribute-options-optimization.patch|Attribute Options Optimization|\>= 2.3.0
magento/module-indexer|Patch-Magento_Indexer-M2.3.1-indexer-reindex-optional-dependencies.patch|indexer:reindex command - Optional dependencies|\>= 2.3.1
magento/module-related-product-graph-ql|Patch-Magento_RelatedProductGraphQl-M2.4.0-2.4.1-remove-related-products-not-in-maplist|#28892| >= 2.4.0 <= 2.4.2
magento/module-review|Patch-Magento\_Review-M2.2-review-renderer-module-namespace.patch| |all as of 2.2.5
magento/module-review|Patch-Magento_Review-M2.3-observer-catalog-check-is-active.patch|Fix: Product Collection Observer - Check module status|
magento/module-theme|Patch-Magento\_Email-M2.1.0-create-email-logo-2.patch| |< 2.1.8 (2.1.4 n/a)
Expand Down
6 changes: 6 additions & 0 deletions patches.json
Original file line number Diff line number Diff line change
Expand Up @@ -376,6 +376,12 @@
"version": "*"
}
},
"magento/module-related-product-graph-ql": {
"Fix: https://github.com/magento/magento2/issues/28892": {
"file": "Patch-Magento_RelatedProductGraphQl-M2.4.0-2.4.1-remove-related-products-not-in-maplist.patch",
"version": "*"
}
},
"magento/module-review": {
"Fix review namespace": {
"file": "Patch-Magento_Review-M2.2-review-renderer-module-namespace.patch",
Expand Down