-
Notifications
You must be signed in to change notification settings - Fork 9.4k
magento/magento2#39861: Shipment email not sent when submitted from Admin Order view despite being enabled in store configuration #39897
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
Conversation
…r view despite being enabled in store configuration - adding storeId to canSendNewShipmentEmail method
|
Hi @KrasnoshchokBohdan. Thank you for your contribution!
Allowed build names are:
You can find more information about the builds here For more details, review the Code Contributions documentation. |
|
@magento run all tests |
…r view despite being enabled in store configuration - copyright
|
@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.
Pull Request Overview
This pull request addresses an issue where the shipment email was not sent from the Admin Order view due to a missing store-specific configuration check. The changes include updating the logic to pass the store ID to the email sending check and updating the file header copyright notice.
- Added store-specific check by passing $shipment->getOrder()->getStoreId() to canSendNewShipmentEmail().
- Updated file header copyright from Magento to Adobe.
Comments suppressed due to low confidence (1)
app/code/Magento/Shipping/Controller/Adminhtml/Order/Shipment/Save.php:3
- [nitpick] Verify that the updated copyright notice aligns with Magento's licensing policies, as the change from Magento to Adobe may need confirmation.
* Copyright 2015 Adobe
|
@magento run all tests |
|
@magento run all tests |
engcom-Hotel
left a comment
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.
Hello @KrasnoshchokBohdan,
Thanks for the contribution!
The changes looks good to us, but please add some automated test in accordance to the DOD.
Thanks
…r view despite being enabled in store configuration - Add unit tests for shipment email sending with store-specific logic
|
@magento run all tests |
|
@magento run all tests |
|
@magento run all tests |
|
@magento run Functional Tests CE, Integration Tests, Unit Tests |
|
@magento run Integration Tests |
1 similar comment
|
@magento run Integration Tests |
app/code/Magento/Shipping/Controller/Adminhtml/Order/Shipment/Save.php
Outdated
Show resolved
Hide resolved
app/code/Magento/Shipping/Test/Unit/Controller/Adminhtml/Order/Shipment/SaveTest.php
Outdated
Show resolved
Hide resolved
|
@magento run all tests |
Den4ik
left a comment
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.
Looks good
|
Moving it to Merge in progress |
2c0ca5f
into
magento:2.4-develop



Description (*)
\Magento\Shipping\Controller\Adminhtml\Order\Shipment\Save::execute
without the right 'store id' checks only default config value
Related Pull Requests
Fixed Issues (if relevant)
Manual testing scenarios (*)
Questions or comments
Contribution checklist (*)