-
Notifications
You must be signed in to change notification settings - Fork 9.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Forwardport] FIX for issue#14869 - Wrong price at backend after update #16893
[Forwardport] FIX for issue#14869 - Wrong price at backend after update #16893
Conversation
…commit 9d3be73 changed the default behaviour of \Magento\Quote\Model\ResourceModel\Quote\Item\Collection::getStoreId() using the store coming from the current session instead of using the one from quote. The previous commit was made to fix an error while using getItems() without setting a quote. The current fix restore the previous behaviour and adds a check if the quote is not specified.
Hi @mage2pratik. Thank you for your contribution
For more details, please, review the Magento Contributor Assistant documentation |
@@ -67,6 +73,7 @@ public function __construct( | |||
\Magento\Quote\Model\ResourceModel\Quote\Item\Option\CollectionFactory $itemOptionCollectionFactory, | |||
\Magento\Catalog\Model\ResourceModel\Product\CollectionFactory $productCollectionFactory, | |||
\Magento\Quote\Model\Quote\Config $quoteConfig, | |||
\Magento\Store\Model\StoreManagerInterface $storeManager = null, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @mage2pratik, thanks for collaboration. The optional parameter should be passed last in the params list, currently, it's backward-incompatible changes
Hi @mage2pratik. Thank you for your contribution. |
Original Pull Request
#14904
A previous commit 9d3be73 (cc @neeta-wagento) changed the default behaviour of
\Magento\Quote\Model\ResourceModel\Quote\Item\Collection::getStoreId()
using the store coming from the current sessioninstead of using the one from quote. The previous commit was made to fix an error while using
getItems()
without setting a quote.The implemetation is correctly working in the frontend because the quote storeId is and the session storeId are matchnig, but it breaks the admin implementation because they can be different.
The current fix restore the previous behaviour and adds a check if the quote is not specified.
Fixed Issues (if relevant)
Contribution checklist