{"data":{"id":"magento2-40863","source":"github-pr","sourceRef":"magento/magento2#40863","title":"Min qty validation error in admin panel for bundle products","pr":{"number":40863,"url":"https://github.com/magento/magento2/pull/40863","author":"aasim110","mergedAt":"2026-08-24T14:44:48Z","mergeCommit":"2d504c721766842c9b529ee915da56a064e65a3c","headCommit":"870a397763c86d2eab019156f75e58e22871cdbd","baseRef":"2.4-develop","diffSha256":"900b19032f471540e7b5fde48ff04f4f7e87c53573e99daddb6e3c349fcf19b5"},"issues":[{"number":40812,"url":"https://github.com/magento/magento2/issues/40812","title":"Min qty validation error in admin panel for bundle products","labels":["Area: Order","Component: Order grid","Issue: Confirmed","Priority: P2","Progress: PR Created","Progress: done","Reported on 2.4.9","Reproduced on 2.4.x"],"kind":"human"}],"fixedIn":null,"containingTags":[],"reportedOn":"2.4.9","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":"clean"},"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","2.4.9"],"components":["magento/module-sales"],"files":[{"path":"app/code/Magento/Sales/Block/Adminhtml/Order/Create/Items/Grid.php","change":"modified","package":"magento/module-sales"}],"stripped":{"tests":["app/code/Magento/Sales/Test/Unit/Block/Adminhtml/Order/Create/Items/GridTest.php"],"docs":[],"outsideCode":[]},"linesChanged":26,"mergeBatched":false,"excluded":null,"sections":{"description":"Error message:","stepsToReproduce":"1. Create simple product with 'Minimum Qty Allowed in Shopping Cart'  = 3\n2. Create a bundle product and add the previously created simple product to it with default qty = 5\n3. Start creating a new order in admin panel\n4. Add the bundle product to quote with qty = 1","expectedResult":"The bundle product is added without any errors","actualResult":"Error message:\n\n> The fewest you may purchase is 3","source":"issue"},"signatures":["Error message:"],"labels":{"area":["Order"],"component":["Order grid"],"priority":"P2","severity":null,"reportedOn":["2.4.9"]},"categories":["Order/Checkout"],"triage":{"model":"@cf/cloudflare/clef","requestHash":"08fd1fe5e2c5a33cbf9e348837f7ce5d62b702e80d4cc237c71b7f5d57458bf7","isBugfix":0.9748,"changeKind":{"choice":"bugfix","probabilities":{"bugfix":0.9623,"feature":0.0059,"refactor":0.0142,"tests_only":0.0081,"docs_only":0.0044,"dependency":0.0051},"confidence":0.9116},"scope":{"score":0.9118,"probabilities":{"0":0.2631,"1":0.562,"2":0.1749},"confidence":0.1235},"risk":{"score":0.3809,"probabilities":{"0":0.705,"1":0.2091,"2":0.0859},"confidence":0.3222},"area":{"choice":"admin","probabilities":{"catalog":0.0362,"checkout":0.1242,"customer":0.0059,"admin":0.7979,"graphql_api":0.005,"framework":0.0099,"frontend":0.0079,"other":0.013},"confidence":0.6044},"securityRelevant":0.0072,"reportedVersion":{"choice":"2.4.9","probabilities":{"2.4.0":0.0034,"2.4.0-p1":0.0034,"2.4.1":0.0031,"2.4.1-p1":0.0031,"2.4.2":0.0032,"2.4.2-p1":0.0033,"2.4.2-p2":0.0035,"2.4.3":0.0042,"2.4.3-p1":0.0041,"2.4.3-p2":0.0052,"2.4.3-p3":0.0039,"2.4.4":0.0041,"2.4.4-p1":0.0036,"2.4.4-p10":0.004,"2.4.4-p11":0.0042,"2.4.4-p12":0.0039,"2.4.4-p13":0.0041,"2.4.4-p14":0.0041,"2.4.4-p15":0.0038,"2.4.4-p16":0.0041,"2.4.4-p17":0.0039,"2.4.4-p18":0.0037,"2.4.4-p2":0.0031,"2.4.4-p3":0.0033,"2.4.4-p4":0.0036,"2.4.4-p5":0.0039,"2.4.4-p6":0.004,"2.4.4-p7":0.0044,"2.4.4-p8":0.0045,"2.4.4-p9":0.0042,"2.4.5":0.0038,"2.4.5-p1":0.0032,"2.4.5-p10":0.0032,"2.4.5-p11":0.0036,"2.4.5-p12":0.0044,"2.4.5-p13":0.0038,"2.4.5-p14":0.0045,"2.4.5-p15":0.0038,"2.4.5-p16":0.0041,"2.4.5-p17":0.0039,"2.4.5-p2":0.003,"2.4.5-p3":0.0036,"2.4.5-p4":0.0036,"2.4.5-p5":0.0045,"2.4.5-p6":0.0043,"2.4.5-p7":0.0045,"2.4.5-p8":0.004,"2.4.5-p9":0.0036,"2.4.6":0.005,"2.4.6-p1":0.0047,"2.4.6-p10":0.0055,"2.4.6-p11":0.0051,"2.4.6-p12":0.0074,"2.4.6-p13":0.0056,"2.4.6-p14":0.0062,"2.4.6-p15":0.0048,"2.4.6-p2":0.0035,"2.4.6-p3":0.004,"2.4.6-p4":0.0052,"2.4.6-p5":0.0052,"2.4.6-p6":0.0067,"2.4.6-p7":0.0053,"2.4.6-p8":0.0047,"2.4.6-p9":0.0044,"2.4.7":0.0073,"2.4.7-p1":0.0055,"2.4.7-p10":0.0057,"2.4.7-p2":0.0041,"2.4.7-p3":0.0061,"2.4.7-p4":0.0072,"2.4.7-p5":0.0071,"2.4.7-p6":0.0092,"2.4.7-p7":0.006,"2.4.7-p8":0.0071,"2.4.7-p9":0.0052,"2.4.8":0.0085,"2.4.8-p1":0.0085,"2.4.8-p2":0.0095,"2.4.8-p3":0.0116,"2.4.8-p4":0.0118,"2.4.8-p5":0.0087,"2.4.9":0.5923,"unspecified":0.011},"confidence":0.3452},"backportWorthy":{"score":1.6229,"probabilities":{"0":0.0658,"1":0.2456,"2":0.6886},"confidence":0.3083}},"curated":{"title":"Fixes false min qty error when adding a bundle to an admin order","description":"In the admin panel, when the bundle product is added to quote with qty = 1, the error message is 'The fewest you may purchase is 3' if a linked simple product has Min Sale Qty above 1, as the stock validation takes the simple product ID but validates it for the bundle qty. Items Grid::getItems() now validates each linked simple product with its own qty in the bundle.","categories":["Order/Checkout"],"author":"claude-code/opus-5.5","date":"2026-10-06","reviewedBy":null},"tests":{"2.4.8-p5":{"before":"not-runnable","after":"error","adapted":false,"runAt":"2026-10-06T09:20:27.826Z","releaseCommit":"870a22c63d9d9b68fa3297962e2d5d5841115814","suites":{"unit":{"before":"not-runnable","after":"error","runAt":"2026-10-06T09:20:27.826Z"}}},"2.4.9":{"before":"fail","after":"pass","adapted":false,"runAt":"2026-10-06T09:20:29.276Z","releaseCommit":"755e34dd689021c5165db9d35ecff74f7dc51527","suites":{"unit":{"before":"fail","after":"pass","runAt":"2026-10-06T09:20:29.276Z"}}},"2.4.7-p10":{"before":"not-runnable","after":"error","adapted":false,"runAt":"2026-10-06T09:29:34.995Z","releaseCommit":"72561bf80652f57cc642a03e2c9a51d74a285b14","suites":{"unit":{"before":"not-runnable","after":"error","runAt":"2026-10-06T09:29:34.995Z"}}}}},"_documentation":"https://magento.watch/api","_description":"Upstream fix magento2-40863 details"}