-
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
MC-36779: Product still present in the Wish List after added to order #31110
MC-36779: Product still present in the Wish List after added to order #31110
Conversation
Hi @SmVladyslav. Thank you for your contribution
❗ Automated tests can be triggered manually with an appropriate comment:
You can find more information about the builds here ℹ️ Please run only needed test builds instead of all when developing. Please run all test builds before sending your PR for review. For more details, please, review the Magento Contributor Guide documentation. 🕙 You can find the schedule on the Magento Community Calendar page. 📞 The triage of Pull Requests happens in the queue order. If you want to speed up the delivery of your contribution, please join the Community Contributions Triage session to discuss the appropriate ticket. 🎥 You can find the recording of the previous Community Contributions Triage on the Magento Youtube Channel ✏️ Feel free to post questions/proposals/feedback related to the Community Contributions Triage process to the corresponding Slack Channel |
@magento run all tests |
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.
🟡 @SmVladyslav I see that you reference the array key, but as far as I understand - there's no guarantee this key will exist. Isn't that necessary to check whether the key exist? (eg. isset()
)
@@ -970,7 +970,7 @@ public function applySidebarData($data) | |||
$item = $this->getCustomerCart()->getItemById($itemId); | |||
if ($item) { | |||
$this->moveQuoteItem($item, 'order', $qty); | |||
$this->removeItem($itemId, 'cart'); | |||
$data['remove'][$itemId] = 'cart'; |
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.
What if $data['remove']
does not exist?
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.
In this case we put value under key that will be processed on line 996. I have rewritten that code to be more readable.
@@ -984,6 +984,7 @@ public function applySidebarData($data) | |||
); | |||
if ($item->getId()) { | |||
$this->addProduct($item->getProduct(), $item->getBuyRequest()->toArray()); | |||
$data['remove'][$itemId] = 'wishlist'; |
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.
What if $data['remove']
does not exist?
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.
In this case we put value under key that will be processed on line 996. I have rewritten that code to be more readable.
@magento run Functional Tests CE, Functional Tests B2B, Unit Tests, WebAPI Tests |
@magento run all tests |
@magento run all tests |
@magento run Functional Tests B2B, Functional Tests CE, Integration Tests, WebAPI Tests |
@magento run Functional Tests B2B, Functional Tests EE, Integration Tests |
@magento run Functional Tests EE |
@@ -963,10 +964,18 @@ define([ | |||
}.bind(this)); | |||
// response handler | |||
productConfigure.setOnLoadIFrameCallback(listType, function (response) { | |||
var area = ['items', 'shipping_method', 'billing_method', 'totals', 'giftmessage']; |
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.
areas?
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.
Renamed
<click selector="{{AdminCreateOrderWishListSection.addConfigProductToOrder($$createConfigProduct.name$$)}}" stepKey="AddConfigurableProductToOrder"/> | ||
<waitForElementVisible selector="{{AdminOrderFormConfigureProductSection.optionSelect($$createConfigProductAttribute.default_frontend_label$$)}}" stepKey="waitForConfigurablePopover"/> | ||
<selectOption selector="{{AdminOrderFormConfigureProductSection.optionSelect($$createConfigProductAttribute.default_frontend_label$$)}}" userInput="$$getConfigAttributeOption1.label$$" stepKey="selectConfigurableOption"/> | ||
<click selector="{{AdminOrderFormConfigureProductSection.ok}}" stepKey="clickOkButton"/> | ||
<click selector="{{AdminCustomerCreateNewOrderSection.updateChangesBtn}}" stepKey="clickOnUpdateButton"/> | ||
<comment userInput="Click OK button to update lists" stepKey="clickOnUpdateButton"/> |
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.
userInput="Action should be removed but replaced with comment due to backward compatibility"
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.
Fixed
@magento run all tests |
@magento import code to https://github.com/magento-tsg/magento2ce |
@zakdma, an error occurred during the Pull Request import. |
1 similar comment
@zakdma, an error occurred during the Pull Request import. |
@magento import code to https://github.com/magento-tsg/magento2ce |
@zakdma the branch with code successfully imported into |
@magento run Functional Tests B2B |
Hi @SmVladyslav, thank you for your contribution! |
Description (*)
Related Pull Requests
Fixed Issues (if relevant)
Manual testing scenarios (*)
Questions or comments
Contribution checklist (*)