-
Notifications
You must be signed in to change notification settings - Fork 72
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2186 from graphcommerce-org/update-magento-known-…
…issues Update magento known issues
- Loading branch information
Showing
6 changed files
with
144 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@graphcommerce/docs": patch | ||
--- | ||
|
||
Update Magento known issues |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
docs/magento/patches/fix-bundle-selection-visibility-catalog.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
Fix bundle product children not showing up on some products, see https://github.com/magento/magento2/issues/37774 | ||
|
||
@package magento/module-catalog-graph-ql | ||
|
||
diff --git a/Model/Resolver/Products/DataProvider/Product.php b/Model/Resolver/Products/DataProvider/Product.php | ||
index 30be41072242b..3e955ae303453 100644 | ||
--- a/Model/Resolver/Products/DataProvider/Product.php | ||
+++ b/Model/Resolver/Products/DataProvider/Product.php | ||
@@ -89,7 +89,7 @@ public function getList( | ||
|
||
$this->collectionPreProcessor->process($collection, $searchCriteria, $attributes, $context); | ||
|
||
- if ($isChildSearch) { | ||
+ if (!$isChildSearch) { | ||
$visibilityIds = $isSearch | ||
? $this->visibility->getVisibleInSearchIds() | ||
: $this->visibility->getVisibleInCatalogIds(); |
19 changes: 19 additions & 0 deletions
19
docs/magento/patches/fix-bundle-selection-visibility-related.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
Fix bundle product children not showing up on some products, see https://github.com/magento/magento2/issues/37774 | ||
|
||
@package magento/module-related-product-graph-ql | ||
|
||
diff --git a/Model/Resolver/Batch/AbstractLikedProducts.php b/Model/Resolver/Batch/AbstractLikedProducts.php | ||
index fac7b23d408e3..f35af6f4885d2 100644 | ||
--- a/Model/Resolver/Batch/AbstractLikedProducts.php | ||
+++ b/Model/Resolver/Batch/AbstractLikedProducts.php | ||
@@ -94,9 +94,7 @@ private function findRelations(array $products, array $loadAttributes, int $link | ||
$this->searchCriteriaBuilder->addFilter('entity_id', $relatedIds, 'in'); | ||
$relatedSearchResult = $this->productDataProvider->getList( | ||
$this->searchCriteriaBuilder->create(), | ||
- $loadAttributes, | ||
- false, | ||
- true | ||
+ $loadAttributes | ||
); | ||
//Filling related products map. | ||
/** @var \Magento\Catalog\Api\Data\ProductInterface[] $relatedProducts */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
Fix add to cart `user_error` field containing inconsistent errors. See https://github.com/magento/magento2/pull/38014 | ||
|
||
@package magento/module-quote | ||
|
||
--- a/Model/Cart/AddProductsToCart.php | ||
+++ b/Model/Cart/AddProductsToCart.php (date 1696845624268) | ||
@@ -80,14 +80,6 @@ | ||
$cartId = $this->maskedQuoteIdToQuoteId->execute($maskedCartId); | ||
$cart = $this->cartRepository->get($cartId); | ||
$allErrors = []; | ||
- if ($cart->getData('has_error')) { | ||
- $errors = $cart->getErrors(); | ||
- | ||
- /** @var MessageInterface $error */ | ||
- foreach ($errors as $error) { | ||
- $allErrors[] = $this->error->create($error->getText()); | ||
- } | ||
- } | ||
|
||
$failedCartItems = $this->addItemsToCart($cart, $cartItems); | ||
$saveCart = empty($failedCartItems); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
Fix custom options not saving on addProductsToCart. See https://github.com/magento/magento2/issues/37599 | ||
|
||
@package magento/module-quote | ||
|
||
--- a/Model/Quote.php | ||
+++ b/Model/Quote.php | ||
@@ -1647,6 +1647,8 @@ public function addProduct( | ||
); | ||
} | ||
|
||
+ $productId = $product->getId(); | ||
+ $product = clone $this->productRepository->getById($productId, false, $this->getStore()->getId()); | ||
$cartCandidates = $product->getTypeInstance()->prepareForCartAdvanced($request, $product, $processMode); | ||
|
||
/** |