{"data":{"id":"magento2-39897","source":"github-pr","sourceRef":"magento/magento2#39897","title":"Shipment email not sent when submitted from Admin Order view despite being enabled in store configuration","pr":{"number":39897,"url":"https://github.com/magento/magento2/pull/39897","author":"KrasnoshchokBohdan","mergedAt":"2025-09-09T11:04:43Z","mergeCommit":"2c0ca5fd4c63c2aca8460a83fc4f1dbde22a3801","headCommit":"4517c351f7729f3aae49d1e16dbe586af0468c27","baseRef":"2.4-develop","diffSha256":"6f1a5c5dbbc4e8e14cbd9f390d0ae336d4c287f12fa2f52aad0c4f92fa83d3a3"},"issues":[{"number":39861,"url":"https://github.com/magento/magento2/issues/39861","title":"Shipment email not sent when submitted from Admin Order view despite being enabled in store configuration","labels":["Area: Order","Component: Email","Issue: Confirmed","Priority: P2","Progress: done","Reported on 2.4.7-p5","Reproduced on 2.4.x"],"kind":"human"}],"fixedIn":"2.4.9","containingTags":["2.4.9"],"reportedOn":"2.4.7-p5","codeMatch":{"2.4.6":"clean","2.4.6-p1":"clean","2.4.6-p2":"clean","2.4.6-p3":"clean","2.4.6-p4":"clean","2.4.6-p5":"clean","2.4.6-p6":"clean","2.4.6-p7":"clean","2.4.6-p8":"clean","2.4.6-p9":"clean","2.4.6-p10":"clean","2.4.6-p11":"clean","2.4.6-p12":"clean","2.4.6-p13":"clean","2.4.6-p14":"clean","2.4.6-p15":"clean","2.4.7":"clean","2.4.7-p1":"clean","2.4.7-p2":"clean","2.4.7-p3":"clean","2.4.7-p4":"clean","2.4.7-p5":"clean","2.4.7-p6":"clean","2.4.7-p7":"clean","2.4.7-p8":"clean","2.4.7-p9":"clean","2.4.7-p10":"clean","2.4.8":"clean","2.4.8-p1":"clean","2.4.8-p2":"clean","2.4.8-p3":"clean","2.4.8-p4":"clean","2.4.8-p5":"clean","2.4.9":"conflict"},"affectedVersions":["2.4.6","2.4.6-p1","2.4.6-p2","2.4.6-p3","2.4.6-p4","2.4.6-p5","2.4.6-p6","2.4.6-p7","2.4.6-p8","2.4.6-p9","2.4.6-p10","2.4.6-p11","2.4.6-p12","2.4.6-p13","2.4.6-p14","2.4.6-p15","2.4.7","2.4.7-p1","2.4.7-p2","2.4.7-p3","2.4.7-p4","2.4.7-p5","2.4.7-p6","2.4.7-p7","2.4.7-p8","2.4.7-p9","2.4.7-p10","2.4.8","2.4.8-p1","2.4.8-p2","2.4.8-p3","2.4.8-p4","2.4.8-p5"],"components":["magento/module-shipping"],"files":[{"path":"app/code/Magento/Shipping/Controller/Adminhtml/Order/Shipment/Save.php","change":"modified","package":"magento/module-shipping"}],"stripped":{"tests":["app/code/Magento/Shipping/Test/Unit/Controller/Adminhtml/Order/Shipment/SaveTest.php"],"docs":[],"outsideCode":[]},"linesChanged":8,"mergeBatched":false,"excluded":null,"sections":{"description":"No shipment confirmation email is sent because the system checks the default store configuration instead of the store configuration where the order was placed.","stepsToReproduce":"1. Set up a multi-store configuration where the default store has shipment emails disabled\n2. Create an order in a secondary store that has shipment emails enabled\n3. Go to Admin > Sales > Orders\n4. Open the order from the secondary store\n5. Click on \"Ship\" button\n6. Fill in shipment details and check \"Email Copy of Shipment\"\n7. Submit the shipment","expectedResult":"The system should send a shipment confirmation email as it is enabled in the store configuration where the order was placed.","actualResult":"No shipment confirmation email is sent because the system checks the default store configuration instead of the store configuration where the order was placed.","source":"issue"},"signatures":[],"labels":{"area":["Order"],"component":["Email"],"priority":"P2","severity":null,"reportedOn":["2.4.7-p5"]},"categories":["Emails","Order/Checkout"],"triage":{"model":"@cf/cloudflare/clef","requestHash":"e234a20b6cbf889412f8b8fd05046c3dd921cab078b71014eecca8ecf00b9883","isBugfix":0.9794,"changeKind":{"choice":"bugfix","probabilities":{"bugfix":0.9635,"feature":0.0071,"refactor":0.0104,"tests_only":0.0102,"docs_only":0.0042,"dependency":0.0046},"confidence":0.9144},"scope":{"score":0.7923,"probabilities":{"0":0.3636,"1":0.4805,"2":0.1559},"confidence":0.0811},"risk":{"score":0.1895,"probabilities":{"0":0.8509,"1":0.1086,"2":0.0405},"confidence":0.6063},"area":{"choice":"admin","probabilities":{"catalog":0.0153,"checkout":0.4137,"customer":0.0175,"admin":0.4516,"graphql_api":0.0099,"framework":0.0353,"frontend":0.0186,"other":0.0381},"confidence":0.2901},"securityRelevant":0.0076,"reportedVersion":{"choice":"2.4.7-p5","probabilities":{"2.4.0":0.0023,"2.4.0-p1":0.0024,"2.4.1":0.0022,"2.4.1-p1":0.0024,"2.4.2":0.0022,"2.4.2-p1":0.0024,"2.4.2-p2":0.0023,"2.4.3":0.0023,"2.4.3-p1":0.0025,"2.4.3-p2":0.0027,"2.4.3-p3":0.0027,"2.4.4":0.0024,"2.4.4-p1":0.0025,"2.4.4-p10":0.003,"2.4.4-p11":0.0032,"2.4.4-p12":0.0031,"2.4.4-p13":0.0032,"2.4.4-p14":0.0029,"2.4.4-p15":0.0029,"2.4.4-p16":0.003,"2.4.4-p17":0.0034,"2.4.4-p18":0.0026,"2.4.4-p2":0.0022,"2.4.4-p3":0.0023,"2.4.4-p4":0.0024,"2.4.4-p5":0.0059,"2.4.4-p6":0.0023,"2.4.4-p7":0.0024,"2.4.4-p8":0.0023,"2.4.4-p9":0.0023,"2.4.5":0.0025,"2.4.5-p1":0.0025,"2.4.5-p10":0.0027,"2.4.5-p11":0.0029,"2.4.5-p12":0.0031,"2.4.5-p13":0.0029,"2.4.5-p14":0.003,"2.4.5-p15":0.003,"2.4.5-p16":0.003,"2.4.5-p17":0.0029,"2.4.5-p2":0.0026,"2.4.5-p3":0.0027,"2.4.5-p4":0.0029,"2.4.5-p5":0.0031,"2.4.5-p6":0.0029,"2.4.5-p7":0.003,"2.4.5-p8":0.0029,"2.4.5-p9":0.0024,"2.4.6":0.0051,"2.4.6-p1":0.0037,"2.4.6-p10":0.0044,"2.4.6-p11":0.0047,"2.4.6-p12":0.0045,"2.4.6-p13":0.0037,"2.4.6-p14":0.0039,"2.4.6-p15":0.0041,"2.4.6-p2":0.0029,"2.4.6-p3":0.0032,"2.4.6-p4":0.0047,"2.4.6-p5":0.0047,"2.4.6-p6":0.0048,"2.4.6-p7":0.0054,"2.4.6-p8":0.0035,"2.4.6-p9":0.0029,"2.4.7":0.1329,"2.4.7-p1":0.0037,"2.4.7-p10":0.0032,"2.4.7-p2":0.0029,"2.4.7-p3":0.0051,"2.4.7-p4":0.0107,"2.4.7-p5":0.558,"2.4.7-p6":0.018,"2.4.7-p7":0.0101,"2.4.7-p8":0.0078,"2.4.7-p9":0.0065,"2.4.8":0.0057,"2.4.8-p1":0.0055,"2.4.8-p2":0.0062,"2.4.8-p3":0.0066,"2.4.8-p4":0.006,"2.4.8-p5":0.0056,"2.4.9":0.0044,"unspecified":0.0032},"confidence":0.3225},"backportWorthy":{"score":1.7599,"probabilities":{"0":0.0383,"1":0.1635,"2":0.7982},"confidence":0.4979}},"curated":{"title":"Admin shipment email is not sent when only the order's store has it enabled","description":"Shipment email is not sent from the Admin Order view with Email Copy of Shipment checked, when shipment emails are disabled in the default store but enabled in the store of the order. Save::execute now uses the store id of the order in canSendNewShipmentEmail.","categories":["Emails","Order/Checkout"],"author":"claude-code/opus-5.5","date":"2026-10-06","reviewedBy":null},"tests":{"2.4.8-p5":{"before":"fail","after":"pass","adapted":false,"runAt":"2026-10-06T09:20:14.687Z","releaseCommit":"870a22c63d9d9b68fa3297962e2d5d5841115814","suites":{"unit":{"before":"fail","after":"pass","runAt":"2026-10-06T09:20:14.687Z"}}},"2.4.7-p10":{"before":"fail","after":"pass","adapted":false,"runAt":"2026-10-06T09:29:25.007Z","releaseCommit":"72561bf80652f57cc642a03e2c9a51d74a285b14","suites":{"unit":{"before":"fail","after":"pass","runAt":"2026-10-06T09:29:25.007Z"}}}}},"_documentation":"https://magento.watch/api","_description":"Upstream fix magento2-39897 details"}