{"data":{"id":"magento2-39497","source":"github-pr","sourceRef":"magento/magento2#39497","title":"Grouped Product Wishlist Validations are not working","pr":{"number":39497,"url":"https://github.com/magento/magento2/pull/39497","author":"Mohamed-Asar","mergedAt":"2026-07-28T12:06:30Z","mergeCommit":"a25511e48d2efa17b615f9f6ef0513363616d6ed","headCommit":"35984e0a4b6f9b09f026ce3e7246d8cb110d254a","baseRef":"2.4-develop","diffSha256":"6c9b60ab4b26cfb1977aa5c7f804ba6de8cc8467af3c47553ff570f2c9f5c0bd"},"issues":[{"number":39496,"url":"https://github.com/magento/magento2/issues/39496","title":"Grouped Product Wishlist Validations are not working","labels":["Area: Catalog","Component: Catalog","Issue: Confirmed","Priority: P2","Progress: PR Created","Progress: PR in progress","Progress: done","Reported on 2.4.7-p3","Reproduced on 2.4.x"],"kind":"human"}],"fixedIn":null,"containingTags":[],"reportedOn":"2.4.7-p3","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-wishlist"],"files":[{"path":"app/code/Magento/Wishlist/view/frontend/web/js/add-to-wishlist.js","change":"modified","package":"magento/module-wishlist"}],"stripped":{"tests":["dev/tests/js/jasmine/tests/app/code/Magento/Wishlist/view/frontend/web/js/add-to-wishlist.test.js"],"docs":[],"outsideCode":[]},"linesChanged":12,"mergeBatched":false,"excluded":null,"sections":{"description":"Adding products to wishlist and displaying price as zero, if negative Qty entered, wishlist displaying negative value in price","stepsToReproduce":"1. Create a Grouped Product and associate it with child products.\n2. Set the following quantity properties for one of the child products:\n   - Minimum Qty Allowed in Shopping Cart: 2\n   - Maximum Qty Allowed in Shopping Cart: 10\n   - Qty Increments: 2\n3. Open grouped product PDP, Don't fill any Qty or fill any invalid inputs like(-1, 3, 11)\n4. Click add to wishlist","expectedResult":"it should validate the inputs like simple product\n\n![image](https://github.com/user-attachments/assets/a6058cfa-7723-41ce-b14c-704ce5bdd345)","actualResult":"Adding products to wishlist and displaying price as zero, if negative Qty entered, wishlist displaying negative value in price\n\n![image](https://github.com/user-attachments/assets/d717c069-5f3e-40ef-85b4-8bedb1750289)","source":"issue"},"signatures":[],"labels":{"area":["Catalog"],"component":["Catalog"],"priority":"P2","severity":null,"reportedOn":["2.4.7-p3"]},"categories":["Catalog/Product"],"triage":{"model":"@cf/cloudflare/clef","requestHash":"5524aa312b1846c31d32c01a188b866ab8401e02850aeea412cdb7d814890593","isBugfix":0.9768,"changeKind":{"choice":"bugfix","probabilities":{"bugfix":0.9343,"feature":0.0223,"refactor":0.0124,"tests_only":0.0116,"docs_only":0.0043,"dependency":0.0047,"cleanup":0.0104},"confidence":0.8528},"scope":{"score":0.4578,"probabilities":{"0":0.6345,"1":0.2732,"2":0.0923},"confidence":0.2287},"risk":{"score":0.3251,"probabilities":{"0":0.7102,"1":0.2546,"2":0.0352},"confidence":0.3556},"area":{"choice":"frontend","probabilities":{"catalog":0.1055,"checkout":0.0203,"customer":0.0271,"admin":0.0143,"graphql_api":0.0061,"framework":0.0103,"frontend":0.7838,"other":0.0326},"confidence":0.5749},"securityRelevant":0.0094,"reportedVersion":{"choice":"2.4.7-p3","probabilities":{"2.4.0":0.002,"2.4.0-p1":0.0021,"2.4.1":0.0019,"2.4.1-p1":0.0021,"2.4.2":0.002,"2.4.2-p1":0.0023,"2.4.2-p2":0.0024,"2.4.3":0.0024,"2.4.3-p1":0.0027,"2.4.3-p2":0.0029,"2.4.3-p3":0.0028,"2.4.4":0.0022,"2.4.4-p1":0.0024,"2.4.4-p10":0.003,"2.4.4-p11":0.0038,"2.4.4-p12":0.0032,"2.4.4-p13":0.0033,"2.4.4-p14":0.003,"2.4.4-p15":0.003,"2.4.4-p16":0.0033,"2.4.4-p17":0.0031,"2.4.4-p18":0.0025,"2.4.4-p2":0.0021,"2.4.4-p3":0.0021,"2.4.4-p4":0.0021,"2.4.4-p5":0.0024,"2.4.4-p6":0.0027,"2.4.4-p7":0.0028,"2.4.4-p8":0.0031,"2.4.4-p9":0.0025,"2.4.5":0.0024,"2.4.5-p1":0.0024,"2.4.5-p10":0.0026,"2.4.5-p11":0.0028,"2.4.5-p12":0.003,"2.4.5-p13":0.0031,"2.4.5-p14":0.0038,"2.4.5-p15":0.0028,"2.4.5-p16":0.0026,"2.4.5-p17":0.0025,"2.4.5-p2":0.0024,"2.4.5-p3":0.0026,"2.4.5-p4":0.0024,"2.4.5-p5":0.0027,"2.4.5-p6":0.003,"2.4.5-p7":0.0037,"2.4.5-p8":0.0029,"2.4.5-p9":0.0024,"2.4.6":0.0044,"2.4.6-p1":0.0039,"2.4.6-p10":0.0044,"2.4.6-p11":0.0055,"2.4.6-p12":0.0049,"2.4.6-p13":0.0046,"2.4.6-p14":0.0051,"2.4.6-p15":0.0038,"2.4.6-p2":0.0029,"2.4.6-p3":0.0041,"2.4.6-p4":0.0051,"2.4.6-p5":0.0042,"2.4.6-p6":0.0045,"2.4.6-p7":0.0045,"2.4.6-p8":0.0032,"2.4.6-p9":0.0028,"2.4.7":0.0561,"2.4.7-p1":0.0033,"2.4.7-p10":0.0035,"2.4.7-p2":0.0055,"2.4.7-p3":0.624,"2.4.7-p4":0.0237,"2.4.7-p5":0.009,"2.4.7-p6":0.0117,"2.4.7-p7":0.0081,"2.4.7-p8":0.0069,"2.4.7-p9":0.005,"2.4.8":0.0072,"2.4.8-p1":0.0064,"2.4.8-p2":0.0066,"2.4.8-p3":0.0071,"2.4.8-p4":0.0061,"2.4.8-p5":0.005,"2.4.9":0.0056,"unspecified":0.003},"confidence":0.387},"backportWorthy":{"score":1.5542,"probabilities":{"0":0.0986,"1":0.2485,"2":0.6529},"confidence":0.2466}},"curated":{"title":"Grouped product wishlist validations are not working for invalid qty","description":"With a grouped product, products are added to the wishlist with no qty or invalid qty inputs, displaying price as zero, or a negative value in price for a negative qty. add-to-wishlist.js now runs validation on each input.qty, not only #qty, and calls event.preventDefault() when any input is not valid.","categories":["Catalog/Product"],"author":"claude-code/opus-5.5","date":"2026-10-06","reviewedBy":null},"tests":null},"_documentation":"https://magento.watch/api","_description":"Upstream fix magento2-39497 details"}