{"data":{"id":"magento2-39399","source":"github-pr","sourceRef":"magento/magento2#39399","title":"v2.4.7-p1 Magento reorder -1 order numbers","pr":{"number":39399,"url":"https://github.com/magento/magento2/pull/39399","author":"magentoabu","mergedAt":"2025-07-04T11:31:48Z","mergeCommit":"0db88bc4c5e6fffdd8174d45be5f61ac0ebce0cc","headCommit":"64136148984f2fdb677e1a3c03461e2c191d2286","baseRef":"2.4-develop","diffSha256":"26c6416853062b57b78c4a823ebd6ec3d3a34b0dbd3ff3c697126a7fe0e7c014"},"issues":[{"number":39089,"url":"https://github.com/magento/magento2/issues/39089","title":"v2.4.7-p1 Magento reorder -1 order numbers","labels":["Area: Order","Component: Order grid","Issue: Confirmed","Priority: P2","Progress: PR in progress","Progress: done","Reported on 2.4.7","Reproduced on 2.4.x"],"kind":"human"}],"fixedIn":"2.4.9","containingTags":["2.4.9"],"reportedOn":"2.4.7","codeMatch":{"2.4.6":"conflict","2.4.6-p1":"conflict","2.4.6-p2":"conflict","2.4.6-p3":"conflict","2.4.6-p4":"conflict","2.4.6-p5":"conflict","2.4.6-p6":"conflict","2.4.6-p7":"conflict","2.4.6-p8":"conflict","2.4.6-p9":"conflict","2.4.6-p10":"conflict","2.4.6-p11":"conflict","2.4.6-p12":"conflict","2.4.6-p13":"conflict","2.4.6-p14":"conflict","2.4.6-p15":"conflict","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.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-sales"],"files":[{"path":"app/code/Magento/Sales/Model/AdminOrder/Create.php","change":"modified","package":"magento/module-sales"}],"stripped":{"tests":["app/code/Magento/Sales/Test/Unit/Model/AdminOrder/CreateTest.php","dev/tests/integration/testsuite/Magento/Sales/Model/AdminOrder/CreateTest.php"],"docs":[],"outsideCode":[]},"linesChanged":12,"mergeBatched":false,"excluded":null,"sections":{"description":"The order number is the same 8 digits as the previous order with “-1” added to the end.","stepsToReproduce":"1) Open any order\n2) Click reorder\n3) Submit the order","expectedResult":"The order number is unique 8 digits.","actualResult":"The order number is the same 8 digits as the previous order with “-1” added to the end.","source":"issue"},"signatures":[],"labels":{"area":["Order"],"component":["Order grid"],"priority":"P2","severity":null,"reportedOn":["2.4.7"]},"categories":["Order/Checkout"],"triage":{"model":"@cf/cloudflare/clef","requestHash":"a389cc758eb94d8cd8992951dd5bf0da31d2531141f33c1997169838f0c96196","isBugfix":0.9773,"changeKind":{"choice":"bugfix","probabilities":{"bugfix":0.967,"feature":0.0044,"refactor":0.015,"tests_only":0.0074,"docs_only":0.0027,"dependency":0.0035},"confidence":0.9225},"scope":{"score":0.836,"probabilities":{"0":0.2684,"1":0.6273,"2":0.1043},"confidence":0.2146},"risk":{"score":0.8974,"probabilities":{"0":0.3874,"1":0.3278,"2":0.2848},"confidence":0.008},"area":{"choice":"checkout","probabilities":{"catalog":0.0115,"checkout":0.716,"customer":0.0188,"admin":0.2043,"graphql_api":0.008,"framework":0.0138,"frontend":0.0096,"other":0.018},"confidence":0.4921},"securityRelevant":0.0235,"reportedVersion":{"choice":"2.4.7-p1","probabilities":{"2.4.0":0.0017,"2.4.0-p1":0.0024,"2.4.1":0.0017,"2.4.1-p1":0.0021,"2.4.2":0.0017,"2.4.2-p1":0.0022,"2.4.2-p2":0.0024,"2.4.3":0.0018,"2.4.3-p1":0.0027,"2.4.3-p2":0.0031,"2.4.3-p3":0.0022,"2.4.4":0.0021,"2.4.4-p1":0.0026,"2.4.4-p10":0.0027,"2.4.4-p11":0.0027,"2.4.4-p12":0.0025,"2.4.4-p13":0.0029,"2.4.4-p14":0.0031,"2.4.4-p15":0.0032,"2.4.4-p16":0.003,"2.4.4-p17":0.0032,"2.4.4-p18":0.0025,"2.4.4-p2":0.002,"2.4.4-p3":0.0019,"2.4.4-p4":0.0024,"2.4.4-p5":0.0025,"2.4.4-p6":0.0031,"2.4.4-p7":0.003,"2.4.4-p8":0.0027,"2.4.4-p9":0.0022,"2.4.5":0.0022,"2.4.5-p1":0.0028,"2.4.5-p10":0.002,"2.4.5-p11":0.0024,"2.4.5-p12":0.0041,"2.4.5-p13":0.0026,"2.4.5-p14":0.0027,"2.4.5-p15":0.0026,"2.4.5-p16":0.0024,"2.4.5-p17":0.0026,"2.4.5-p2":0.0021,"2.4.5-p3":0.0019,"2.4.5-p4":0.0024,"2.4.5-p5":0.0022,"2.4.5-p6":0.0027,"2.4.5-p7":0.003,"2.4.5-p8":0.0027,"2.4.5-p9":0.0022,"2.4.6":0.0053,"2.4.6-p1":0.0055,"2.4.6-p10":0.0045,"2.4.6-p11":0.0059,"2.4.6-p12":0.0068,"2.4.6-p13":0.0045,"2.4.6-p14":0.0049,"2.4.6-p15":0.0044,"2.4.6-p2":0.0027,"2.4.6-p3":0.003,"2.4.6-p4":0.0041,"2.4.6-p5":0.0041,"2.4.6-p6":0.0037,"2.4.6-p7":0.0052,"2.4.6-p8":0.0032,"2.4.6-p9":0.0025,"2.4.7":0.2497,"2.4.7-p1":0.4138,"2.4.7-p10":0.0085,"2.4.7-p2":0.0118,"2.4.7-p3":0.0111,"2.4.7-p4":0.0099,"2.4.7-p5":0.0086,"2.4.7-p6":0.0104,"2.4.7-p7":0.0103,"2.4.7-p8":0.0066,"2.4.7-p9":0.0053,"2.4.8":0.0048,"2.4.8-p1":0.0065,"2.4.8-p2":0.0077,"2.4.8-p3":0.007,"2.4.8-p4":0.0057,"2.4.8-p5":0.0054,"2.4.9":0.0047,"unspecified":0.022},"confidence":0.2264},"backportWorthy":{"score":1.6559,"probabilities":{"0":0.0673,"1":0.2094,"2":0.7233},"confidence":0.3573}},"curated":{"title":"Fixes reorder giving the new order the old order number with -1 added","description":"When you click reorder and submit the order, the order number is the same 8 digits as the previous order with \"-1\" added to the end. The beforeSubmit and afterSubmit code of Sales AdminOrder Create does not use getReordered(), so the old order data is used only when getOrder()->getId() is set.","categories":["Order/Checkout"],"author":"claude-code/opus-5.5","date":"2026-10-06","reviewedBy":null},"tests":{"2.4.8-p5":{"before":"pass","after":"pass","adapted":false,"runAt":"2026-10-06T09:26:54.331Z","releaseCommit":"870a22c63d9d9b68fa3297962e2d5d5841115814","suites":{"unit":{"before":"pass","after":"pass","runAt":"2026-10-06T09:26:54.331Z"},"integration":{"before":"pass","after":"pass","runAt":"2026-10-06T09:26:54.331Z"}}},"2.4.7-p10":{"before":"pass","after":"pass","adapted":false,"runAt":"2026-10-06T09:49:47.102Z","releaseCommit":"72561bf80652f57cc642a03e2c9a51d74a285b14","suites":{"unit":{"before":"pass","after":"pass","runAt":"2026-10-06T09:49:47.102Z"},"integration":{"before":"pass","after":"pass","runAt":"2026-10-06T09:49:47.102Z"}}}}},"_documentation":"https://magento.watch/api","_description":"Upstream fix magento2-39399 details"}