{"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":"6307a3ddd5ae2f039fd803b2245b947ca2c05335f1a7274ade98ae3ef4ed021d","isBugfix":0.9763,"changeKind":{"choice":"bugfix","probabilities":{"bugfix":0.9583,"feature":0.0045,"refactor":0.0126,"tests_only":0.0066,"docs_only":0.0028,"dependency":0.0033,"cleanup":0.0119},"confidence":0.9051},"scope":{"score":0.8331,"probabilities":{"0":0.2763,"1":0.6144,"2":0.1093},"confidence":0.1987},"risk":{"score":0.9234,"probabilities":{"0":0.3831,"1":0.3103,"2":0.3066},"confidence":0.0056},"area":{"choice":"checkout","probabilities":{"catalog":0.0115,"checkout":0.7222,"customer":0.0201,"admin":0.1945,"graphql_api":0.0086,"framework":0.0149,"frontend":0.0101,"other":0.0181},"confidence":0.4979},"securityRelevant":0.0255,"reportedVersion":{"choice":"2.4.7-p1","probabilities":{"2.4.0":0.0016,"2.4.0-p1":0.0025,"2.4.1":0.0017,"2.4.1-p1":0.002,"2.4.2":0.0016,"2.4.2-p1":0.0022,"2.4.2-p2":0.0023,"2.4.3":0.0018,"2.4.3-p1":0.0028,"2.4.3-p2":0.0028,"2.4.3-p3":0.0021,"2.4.4":0.002,"2.4.4-p1":0.0025,"2.4.4-p10":0.0026,"2.4.4-p11":0.0027,"2.4.4-p12":0.0025,"2.4.4-p13":0.0027,"2.4.4-p14":0.003,"2.4.4-p15":0.0029,"2.4.4-p16":0.0029,"2.4.4-p17":0.0033,"2.4.4-p18":0.0023,"2.4.4-p2":0.002,"2.4.4-p3":0.0018,"2.4.4-p4":0.0021,"2.4.4-p5":0.0024,"2.4.4-p6":0.0028,"2.4.4-p7":0.003,"2.4.4-p8":0.0029,"2.4.4-p9":0.0022,"2.4.5":0.0022,"2.4.5-p1":0.0026,"2.4.5-p10":0.0019,"2.4.5-p11":0.0024,"2.4.5-p12":0.0036,"2.4.5-p13":0.0025,"2.4.5-p14":0.0028,"2.4.5-p15":0.0025,"2.4.5-p16":0.0024,"2.4.5-p17":0.0028,"2.4.5-p2":0.0021,"2.4.5-p3":0.0019,"2.4.5-p4":0.0022,"2.4.5-p5":0.0023,"2.4.5-p6":0.0024,"2.4.5-p7":0.003,"2.4.5-p8":0.0025,"2.4.5-p9":0.002,"2.4.6":0.0055,"2.4.6-p1":0.0047,"2.4.6-p10":0.004,"2.4.6-p11":0.0067,"2.4.6-p12":0.0059,"2.4.6-p13":0.0047,"2.4.6-p14":0.0059,"2.4.6-p15":0.0044,"2.4.6-p2":0.0027,"2.4.6-p3":0.003,"2.4.6-p4":0.0035,"2.4.6-p5":0.0036,"2.4.6-p6":0.0037,"2.4.6-p7":0.0053,"2.4.6-p8":0.0032,"2.4.6-p9":0.0026,"2.4.7":0.266,"2.4.7-p1":0.403,"2.4.7-p10":0.0072,"2.4.7-p2":0.013,"2.4.7-p3":0.0114,"2.4.7-p4":0.0101,"2.4.7-p5":0.0086,"2.4.7-p6":0.0097,"2.4.7-p7":0.0106,"2.4.7-p8":0.0066,"2.4.7-p9":0.0052,"2.4.8":0.0048,"2.4.8-p1":0.0068,"2.4.8-p2":0.0074,"2.4.8-p3":0.0066,"2.4.8-p4":0.0062,"2.4.8-p5":0.0053,"2.4.9":0.0047,"unspecified":0.0213},"confidence":0.226},"backportWorthy":{"score":1.6453,"probabilities":{"0":0.0712,"1":0.2123,"2":0.7165},"confidence":0.3453}},"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"}