{"data":{"id":"magento2-37932","source":"github-pr","sourceRef":"magento/magento2#37932","title":"Wrong store ID used in Order Address Renderer","pr":{"number":37932,"url":"https://github.com/magento/magento2/pull/37932","author":"thomas-kl1","mergedAt":"2024-05-16T19:44:52Z","mergeCommit":"4d987d294dab7770a92fae10e7813f1abb0467cf","headCommit":"d8fc6d954f00e8b9d0dd96ece972a98ae160c464","baseRef":"2.4-develop","diffSha256":"93965ebd59ed8bce5498bb5580b300306776af0e3c40d56cb204b080493090c5"},"issues":[{"number":38412,"url":"https://github.com/magento/magento2/issues/38412","title":"[Issue] Wrong store ID used in Order Address Renderer","labels":["Area: Order","Component: Store","Issue: Confirmed","Priority: P2","Progress: done","Reported on 2.4.x","Reproduced on 2.4.x","Triage: Dev.Experience"],"kind":"pr-derived"}],"fixedIn":"2.4.8","containingTags":["2.4.8","2.4.8-p1","2.4.8-p2","2.4.8-p3","2.4.8-p4","2.4.8-p5","2.4.9"],"reportedOn":null,"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":"conflict","2.4.8-p1":"conflict","2.4.8-p2":"conflict","2.4.8-p3":"conflict","2.4.8-p4":"conflict","2.4.8-p5":"conflict","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"],"components":["magento/module-sales"],"files":[{"path":"app/code/Magento/Sales/Model/Order/Address/Renderer.php","change":"modified","package":"magento/module-sales"}],"stripped":{"tests":["app/code/Magento/Sales/Test/Unit/Model/Order/Address/RendererTest.php","dev/tests/integration/testsuite/Magento/Sales/Model/Order/Address/RendererTest.php"],"docs":[],"outsideCode":[]},"linesChanged":9,"mergeBatched":false,"excluded":null,"sections":{"description":"`\\Magento\\Sales\\Model\\Order\\Address\\Renderer::format` allows to format order address. Internally, the method retrieve the order store ID and update the current store ID. This produces strange behavior if used in a context with a different store as the current store is not set to its previous value at the end of the execution of the method.","stepsToReproduce":null,"expectedResult":null,"actualResult":null,"source":"pr"},"signatures":[],"labels":{"area":["Order"],"component":["Store"],"priority":"P2","severity":null,"reportedOn":["2.4.x"]},"categories":["Order/Checkout"],"triage":{"model":"@cf/cloudflare/clef","requestHash":"47d3ef80f65e0212a6c2be2dab8c78731f83f5467b553b10754926020a1ef67a","isBugfix":0.9514,"changeKind":{"choice":"bugfix","probabilities":{"bugfix":0.9633,"feature":0.0037,"refactor":0.024,"tests_only":0.0049,"docs_only":0.002,"dependency":0.0021},"confidence":0.9143},"scope":{"score":0.7108,"probabilities":{"0":0.4385,"1":0.4122,"2":0.1493},"confidence":0.0767},"risk":{"score":0.4536,"probabilities":{"0":0.6222,"1":0.3019,"2":0.0759},"confidence":0.2261},"area":{"choice":"checkout","probabilities":{"catalog":0.0133,"checkout":0.4788,"customer":0.3308,"admin":0.0304,"graphql_api":0.0075,"framework":0.0664,"frontend":0.0271,"other":0.0457},"confidence":0.2539},"securityRelevant":0.0061,"reportedVersion":{"choice":"unspecified","probabilities":{"2.4.0":0.0045,"2.4.0-p1":0.004,"2.4.1":0.0046,"2.4.1-p1":0.0038,"2.4.2":0.0067,"2.4.2-p1":0.0056,"2.4.2-p2":0.0078,"2.4.3":0.0095,"2.4.3-p1":0.0099,"2.4.3-p2":0.0133,"2.4.3-p3":0.0062,"2.4.4":0.015,"2.4.4-p1":0.0095,"2.4.4-p10":0.0072,"2.4.4-p11":0.0069,"2.4.4-p12":0.0064,"2.4.4-p13":0.0059,"2.4.4-p14":0.0078,"2.4.4-p15":0.0053,"2.4.4-p16":0.006,"2.4.4-p17":0.005,"2.4.4-p18":0.0042,"2.4.4-p2":0.0029,"2.4.4-p3":0.0032,"2.4.4-p4":0.0035,"2.4.4-p5":0.0038,"2.4.4-p6":0.0039,"2.4.4-p7":0.0045,"2.4.4-p8":0.0039,"2.4.4-p9":0.0035,"2.4.5":0.0147,"2.4.5-p1":0.0097,"2.4.5-p10":0.0061,"2.4.5-p11":0.01,"2.4.5-p12":0.0085,"2.4.5-p13":0.0073,"2.4.5-p14":0.0066,"2.4.5-p15":0.0068,"2.4.5-p16":0.0054,"2.4.5-p17":0.0065,"2.4.5-p2":0.0035,"2.4.5-p3":0.0051,"2.4.5-p4":0.0055,"2.4.5-p5":0.0051,"2.4.5-p6":0.006,"2.4.5-p7":0.0056,"2.4.5-p8":0.005,"2.4.5-p9":0.0042,"2.4.6":0.0324,"2.4.6-p1":0.0186,"2.4.6-p10":0.0086,"2.4.6-p11":0.011,"2.4.6-p12":0.0097,"2.4.6-p13":0.01,"2.4.6-p14":0.0104,"2.4.6-p15":0.0074,"2.4.6-p2":0.0053,"2.4.6-p3":0.0087,"2.4.6-p4":0.0085,"2.4.6-p5":0.0073,"2.4.6-p6":0.008,"2.4.6-p7":0.0075,"2.4.6-p8":0.0058,"2.4.6-p9":0.0047,"2.4.7":0.0158,"2.4.7-p1":0.0128,"2.4.7-p10":0.0091,"2.4.7-p2":0.0098,"2.4.7-p3":0.0138,"2.4.7-p4":0.0138,"2.4.7-p5":0.0107,"2.4.7-p6":0.0131,"2.4.7-p7":0.0119,"2.4.7-p8":0.0084,"2.4.7-p9":0.0055,"2.4.8":0.0168,"2.4.8-p1":0.0143,"2.4.8-p2":0.0141,"2.4.8-p3":0.015,"2.4.8-p4":0.0126,"2.4.8-p5":0.0111,"2.4.9":0.0155,"unspecified":0.3061},"confidence":0.0903},"backportWorthy":{"score":1.6109,"probabilities":{"0":0.0782,"1":0.2326,"2":0.6892},"confidence":0.3027}},"curated":{"title":"Order Address Renderer leaves the current store set to the order store","description":"Order\\Address\\Renderer::format sets the current store to the order store and does not set it to its previous value, so for order mails of different stores sent by the cron job the addresses are not formatted accordingly to their store ID. The change calls Address\\Config::setStore with the order store, and at the end sets the original store on the address config and the store manager.","categories":["Order/Checkout"],"author":"claude-code/opus-5.5","date":"2026-10-06","reviewedBy":null},"tests":{"2.4.7-p10":{"before":"fail","after":"pass","adapted":false,"runAt":"2026-10-06T09:40:27.797Z","releaseCommit":"72561bf80652f57cc642a03e2c9a51d74a285b14","suites":{"unit":{"before":"fail","after":"pass","runAt":"2026-10-06T09:40:27.797Z"},"integration":{"before":"pass","after":"pass","runAt":"2026-10-06T09:40:27.797Z"}}}}},"_documentation":"https://magento.watch/api","_description":"Upstream fix magento2-37932 details"}