-
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
Fix #6310 - Changing products 'this item has weight' using 'Update Attributes' is not possible #26075
Fix #6310 - Changing products 'this item has weight' using 'Update Attributes' is not possible #26075
Conversation
Hi @Bartlomiejsz. Thank you for your contribution
For more details, please, review the Magento Contributor Guide documentation. |
4fb9caf
to
bfe493b
Compare
bfe493b
to
166c7ac
Compare
e41e289
to
84efcec
Compare
…date Attributes' is not possible
84efcec
to
2506c08
Compare
@magento run all tests |
Hi @lenaorobei, thank you for the review. |
Hi @lenaorobei, thank you for the review. |
✔️ QA Passed |
@magento run all tests |
@magento run all tests |
if (!$this->getForm()->getDataObject()->getTypeInstance()->hasWeight()) { | ||
$this->weightSwitcher->setValue(WeightResolver::HAS_NO_WEIGHT); | ||
} | ||
|
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.
I think in this case you need to do the check opposite.
if ($this->getForm()->getDataObject()->getTypeInstance()->hasWeight()) {
$this->weightSwitcher->setValue(WeightResolver::HAS_WEIGHT);
}
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.
This check should be
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.
You're right @engcom-Echo, sorry for that. I restored this check
@magento run all tests |
Failed functional tests not related to the changes in this PR |
…ng 'Update Attributes' is not possible #26075
Hi @Bartlomiejsz, thank you for your contribution! |
Description (*)
This is fix for #6310
Related Pull Requests
https://github.com/magento/partners-magento2ee/pull/150
Fixed Issues (if relevant)
Manual testing scenarios (*)
Questions or comments
Contribution checklist (*)